aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4script.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-05 00:15:44 +0200
committerLars Knoll <lars.knoll@qt.io>2017-08-08 18:58:42 +0000
commit99783cd6dec326058b8db345145b1f8f71cfb6f0 (patch)
treec0daf2d2947cbd224a35f227cd41e79f1d0390cf /src/qml/jsruntime/qv4script.cpp
parentf284d73ccece0490b4a227c788b9415a59a38d9c (diff)
Completely avoid intermediate scopes for simple functions
Change-Id: I1fe2ff987e79cf590ad5ad3fc520b17925f8b616 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4script.cpp')
-rw-r--r--src/qml/jsruntime/qv4script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp
index b771978def..2b97a0f1d4 100644
--- a/src/qml/jsruntime/qv4script.cpp
+++ b/src/qml/jsruntime/qv4script.cpp
@@ -159,9 +159,9 @@ ReturnedValue Script::run()
ScopedCallData callData(valueScope);
callData->thisObject = Primitive::undefinedValue();
if (vmFunction->canUseSimpleFunction())
- return qml->simpleCall(valueScope, callData, vmFunction);
+ return qml->simpleCall(valueScope.engine, callData, vmFunction);
else
- return qml->call(valueScope, callData, vmFunction);
+ return qml->call(valueScope.engine, callData, vmFunction);
}
}