aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4profiling_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-03 12:20:06 +0200
committerLars Knoll <lars.knoll@qt.io>2017-08-03 10:22:06 +0000
commit920339c210778ca987aa161b1102df4a0d00149f (patch)
tree186756d7b07d50ef73bb5cb6173b0c5ed05a1e6d /src/qml/jsruntime/qv4profiling_p.h
parentef5d5a989a344ba812a91b365cd54ace65f27f26 (diff)
No need to pass the Engine pointer to VME::exec()
Change-Id: I1e43305e26833a6d9b714e89f59ccead6bd12605 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.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4profiling_p.h b/src/qml/jsruntime/qv4profiling_p.h
index 71a6d34f9d..e7b6909690 100644
--- a/src/qml/jsruntime/qv4profiling_p.h
+++ b/src/qml/jsruntime/qv4profiling_p.h
@@ -61,7 +61,7 @@
#define Q_V4_PROFILE_ALLOC(engine, size, type) (!engine)
#define Q_V4_PROFILE_DEALLOC(engine, size, type) (!engine)
-#define Q_V4_PROFILE(engine, function) (function->code(engine, function->codeData))
+#define Q_V4_PROFILE(engine, function) (function->code(function))
QT_BEGIN_NAMESPACE
@@ -88,8 +88,8 @@ QT_END_NAMESPACE
#define Q_V4_PROFILE(engine, function)\
(Q_UNLIKELY(engine->profiler()) &&\
(engine->profiler()->featuresEnabled & (1 << Profiling::FeatureFunctionCall)) ?\
- Profiling::FunctionCallProfiler::profileCall(engine->profiler(), engine, function) :\
- function->code(function, engine))
+ Profiling::FunctionCallProfiler::profileCall(engine->profiler(), function) :\
+ function->code(function))
QT_BEGIN_NAMESPACE
@@ -279,10 +279,10 @@ public:
profiler->m_data.append(FunctionCall(function, startTime, profiler->m_timer.nsecsElapsed()));
}
- static ReturnedValue profileCall(Profiler *profiler, ExecutionEngine *engine, Function *function)
+ static ReturnedValue profileCall(Profiler *profiler, Function *function)
{
FunctionCallProfiler callProfiler(profiler, function);
- return function->code(function, engine);
+ return function->code(function);
}
Profiler *profiler;