diff options
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
-rw-r--r-- | src/qml/compiler/qv4codegen.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp index f75839ad4b..6505469a8b 100644 --- a/src/qml/compiler/qv4codegen.cpp +++ b/src/qml/compiler/qv4codegen.cpp @@ -1771,6 +1771,9 @@ int Codegen::defineFunction(const QString &name, AST::Node *ast, savedBytecodeGenerator = bytecodeGenerator; bytecodeGenerator = &bytecode; + // allocate the js stack frame (Context & js Function) + bytecodeGenerator->newRegisterArray(2); + int returnAddress = bytecodeGenerator->newRegister(); if (!_context->parent || _context->usesArgumentsObject == Context::ArgumentsObjectUnknown) |