From 2666fe4a1440cc798b9db68fcc807450d46069c2 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 27 Jun 2018 14:18:17 +0200 Subject: Move the C++ and JS stack frame definitions into it's own file Change-Id: I86e89e07197aec6071809c2d32bd5c98cb7ac6f6 Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4engine_p.h | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'src/qml/jsruntime/qv4engine_p.h') 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 #include "qv4enginebase_p.h" - #ifndef V4_BOOTSTRAP # include "qv4function_p.h" # include @@ -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(&jsFrame->context); - } - int lineNumber() const; - - inline QV4::Heap::CallContext *callContext() const { - Heap::ExecutionContext *ctx = static_cast(jsFrame->context).d();\ - while (ctx->type != Heap::ExecutionContext::Type_CallContext) - ctx = ctx->outer; - return static_cast(ctx); - } - ReturnedValue thisObject() const; -}; - - struct Q_QML_EXPORT ExecutionEngine : public EngineBase { -- cgit v1.2.3