aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4vme_moth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4vme_moth.cpp')
-rw-r--r--src/qml/jsruntime/qv4vme_moth.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4vme_moth.cpp b/src/qml/jsruntime/qv4vme_moth.cpp
index 85def98492..d3a2533136 100644
--- a/src/qml/jsruntime/qv4vme_moth.cpp
+++ b/src/qml/jsruntime/qv4vme_moth.cpp
@@ -419,7 +419,7 @@ static inline const QV4::Value &constant(Function *function, int index)
return function->compilationUnit->constants[index];
}
-QV4::ReturnedValue VME::exec(Function *function, ExecutionEngine *engine)
+QV4::ReturnedValue VME::exec(Function *function)
{
#ifdef DO_TRACE_INSTR
qDebug("Starting VME with context=%p and code=%p", context, code);
@@ -435,6 +435,8 @@ QV4::ReturnedValue VME::exec(Function *function, ExecutionEngine *engine)
#undef MOTH_INSTR_ADDR
#endif
+ ExecutionEngine *engine = function->internalClass->engine;
+
// Arguments/locals are used a *lot*, and pre-fetching them removes a whole bunch of triple
// (or quadruple) indirect loads.
QV4::Value *arguments = nullptr;