aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4script.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-08 16:56:59 +0200
committerLars Knoll <lars.knoll@qt.io>2017-08-10 08:19:24 +0000
commit55f17d0faad79dbb9adf793f7ce6e75ff5b70033 (patch)
tree5a5e34a98a196173c707f62d972a3a4984c146de /src/qml/jsruntime/qv4script.cpp
parent5bc4f4d958a3b76f3435d61206ca0109f07aa1a3 (diff)
Get rid of simpleCall
After the recent changes this can easily be unified with the call method without loss of performance. Change-Id: I0385b47b6a86e890f97dcbada3a1be1129ae0b84 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4script.cpp')
-rw-r--r--src/qml/jsruntime/qv4script.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp
index ef85ce43de..e5db62a749 100644
--- a/src/qml/jsruntime/qv4script.cpp
+++ b/src/qml/jsruntime/qv4script.cpp
@@ -156,10 +156,7 @@ ReturnedValue Script::run()
Scoped<QmlContext> qml(valueScope, qmlContext.value());
ScopedCallData callData(valueScope);
callData->thisObject = Primitive::undefinedValue();
- if (vmFunction->canUseSimpleFunction())
- return qml->simpleCall(valueScope.engine, callData, vmFunction);
- else
- return qml->call(valueScope.engine, callData, vmFunction);
+ return ExecutionContext::call(qml->d(), callData, vmFunction);
}
}