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/qv4engine_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/qv4engine_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4engine_p.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h index a1bd321412..fc0c93eaad 100644 --- a/src/qml/jsruntime/qv4engine_p.h +++ b/src/qml/jsruntime/qv4engine_p.h @@ -56,7 +56,6 @@ #include <private/qintrusivelist_p.h> #include "qv4enginebase_p.h" - #ifndef V4_BOOTSTRAP # include "qv4function_p.h" # include <private/qv8engine_p.h> @@ -89,35 +88,6 @@ struct CompilationUnit; struct Function; -struct Q_QML_EXPORT CppStackFrame { - CppStackFrame *parent; - Function *v4Function; - CallData *jsFrame; - const Value *originalArguments; - int originalArgumentsCount; - int instructionPointer; - const char *yield; - const char *unwindHandler; - const char *unwindLabel; - int unwindLevel; - - QString source() const; - QString function() const; - inline QV4::ExecutionContext *context() const { - return static_cast<ExecutionContext *>(&jsFrame->context); - } - int lineNumber() const; - - inline QV4::Heap::CallContext *callContext() const { - Heap::ExecutionContext *ctx = static_cast<ExecutionContext &>(jsFrame->context).d();\ - while (ctx->type != Heap::ExecutionContext::Type_CallContext) - ctx = ctx->outer; - return static_cast<Heap::CallContext *>(ctx); - } - ReturnedValue thisObject() const; -}; - - struct Q_QML_EXPORT ExecutionEngine : public EngineBase { |