diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-08-07 08:10:15 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-08-10 08:18:05 +0000 |
commit | fd221cf6e056b7239fc2fa2faeccd9ddeb542199 (patch) | |
tree | a453f21ac01aa01a16a7a4f378ec2ed60e07512f /src/qml/jsruntime/qv4enginebase_p.h | |
parent | 01c338023a3a604bb24c2efb18d48f9bac33e6bc (diff) |
Introduce a JS stack frame that corresponds to the C++ stack frame
The frame currently contains the function itself and the current
context.
Change-Id: I7d3402627fbc90e860a7bdc277585f365f5b4cb5
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4enginebase_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4enginebase_p.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4enginebase_p.h b/src/qml/jsruntime/qv4enginebase_p.h index cc049fb296..a713e8eab4 100644 --- a/src/qml/jsruntime/qv4enginebase_p.h +++ b/src/qml/jsruntime/qv4enginebase_p.h @@ -63,9 +63,17 @@ namespace QV4 { #pragma pack(push, 1) #endif struct EngineBase { + struct JSStackFrame { + // callData is directly before this + QV4::Value jsFunction; + QV4::Value context; + // registers follow + }; + struct StackFrame { StackFrame *parent; Function *v4Function; + JSStackFrame *jsFrame; int line = -1; int column = -1; |