aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4profiling_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-03 08:57:03 +0200
committerLars Knoll <lars.knoll@qt.io>2017-08-03 10:22:00 +0000
commitef5d5a989a344ba812a91b365cd54ace65f27f26 (patch)
tree0a74d146d7e69005c1181188882b4893b5850f2b /src/qml/jsruntime/qv4profiling_p.h
parent1f8ab5fa975b2ec9172090f5665bb77cc5630584 (diff)
Get rid of the compilation unit related members in ExecutionContext
And change the signature for VME::exec to take the QV4::Function that should be executed. This is in preparation to being able to run functions that will not need to allocate an execution context on their own. Change-Id: I34538a8723006f4ec24583805e88a66e750100c3 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4profiling_p.h')
-rw-r--r--src/qml/jsruntime/qv4profiling_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4profiling_p.h b/src/qml/jsruntime/qv4profiling_p.h
index 9de597ad0e..71a6d34f9d 100644
--- a/src/qml/jsruntime/qv4profiling_p.h
+++ b/src/qml/jsruntime/qv4profiling_p.h
@@ -89,7 +89,7 @@ QT_END_NAMESPACE
(Q_UNLIKELY(engine->profiler()) &&\
(engine->profiler()->featuresEnabled & (1 << Profiling::FeatureFunctionCall)) ?\
Profiling::FunctionCallProfiler::profileCall(engine->profiler(), engine, function) :\
- function->code(engine, function->codeData))
+ function->code(function, engine))
QT_BEGIN_NAMESPACE
@@ -282,7 +282,7 @@ public:
static ReturnedValue profileCall(Profiler *profiler, ExecutionEngine *engine, Function *function)
{
FunctionCallProfiler callProfiler(profiler, function);
- return function->code(engine, function->codeData);
+ return function->code(function, engine);
}
Profiler *profiler;