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/qv4function.cpp | |
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/qv4function.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4function.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4function.cpp b/src/qml/jsruntime/qv4function.cpp index d21afa3b87..bcc776dc98 100644 --- a/src/qml/jsruntime/qv4function.cpp +++ b/src/qml/jsruntime/qv4function.cpp @@ -49,8 +49,7 @@ QT_BEGIN_NAMESPACE using namespace QV4; -Function::Function(ExecutionEngine *engine, CompiledData::CompilationUnit *unit, const CompiledData::Function *function, - ReturnedValue (*codePtr)(Function *)) +Function::Function(ExecutionEngine *engine, CompiledData::CompilationUnit *unit, const CompiledData::Function *function, Code codePtr) : compiledFunction(function) , compilationUnit(unit) , code(codePtr) |