diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-06-27 14:18:17 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-07-03 08:08:49 +0000 |
commit | 2666fe4a1440cc798b9db68fcc807450d46069c2 (patch) | |
tree | ac777b1d376d7743edbe15a3f671513d800df128 /src/qml/jsruntime/qv4function_p.h | |
parent | 0b6bc89c61d6fc10bd09dfb7374314d993f0c3c5 (diff) |
Move the C++ and JS stack frame definitions into it's own file
Change-Id: I86e89e07197aec6071809c2d32bd5c98cb7ac6f6
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4function_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4function_p.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4function_p.h b/src/qml/jsruntime/qv4function_p.h index ff2d86b89f..9deccaf72a 100644 --- a/src/qml/jsruntime/qv4function_p.h +++ b/src/qml/jsruntime/qv4function_p.h @@ -51,7 +51,6 @@ // #include "qv4global_p.h" -#include <private/qqmlglobal_p.h> #include <private/qv4compileddata_p.h> #include <private/qv4context_p.h> #include <private/qv4vme_moth_p.h> @@ -62,6 +61,8 @@ class MacroAssemblerCodeRef; QT_BEGIN_NAMESPACE +struct QQmlSourceLocation; + namespace QV4 { struct Q_QML_EXPORT Function { @@ -100,10 +101,7 @@ struct Q_QML_EXPORT Function { inline bool isArrowFunction() const { return compiledFunction->flags & CompiledData::Function::IsArrowFunction; } inline bool isGenerator() const { return compiledFunction->flags & CompiledData::Function::IsGenerator; } - QQmlSourceLocation sourceLocation() const - { - return QQmlSourceLocation(sourceFile(), compiledFunction->location.line, compiledFunction->location.column); - } + QQmlSourceLocation sourceLocation() const; Function *nestedFunction() const { |