diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-07-28 10:21:06 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-07-28 15:09:43 +0000 |
commit | 91deafdcc8e4b743e2d27a1793a2b1b2ba506cd7 (patch) | |
tree | fb1409be1deec84adb6dee9ac66e4b616e9530b6 /src/qml/jsruntime/qv4engine_p.h | |
parent | a7c7b26653c76e6c699a7f4e81f7ffec60dde0be (diff) |
Remove some unused members on -no-qml-debug
It's debatable if the uglification is worth the overhead of a few
pointers.
Change-Id: I63b55b2043b8752a94d4b862c3892915135a72b7
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4engine_p.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h index 7c8c881255..f42f727295 100644 --- a/src/qml/jsruntime/qv4engine_p.h +++ b/src/qml/jsruntime/qv4engine_p.h @@ -379,11 +379,19 @@ public: ExecutionEngine(EvalISelFactory *iselFactory = 0); ~ExecutionEngine(); +#ifdef QT_NO_QML_DEBUGGER + QV4::Debugging::Debugger *debugger() const { return nullptr; } + QV4::Profiling::Profiler *profiler() const { return nullptr; } + + void setDebugger(Debugging::Debugger *) {} + void setProfiler(Profiling::Profiler *) {} +#else QV4::Debugging::Debugger *debugger() const { return m_debugger; } QV4::Profiling::Profiler *profiler() const { return m_profiler; } void setDebugger(Debugging::Debugger *debugger); void setProfiler(Profiling::Profiler *profiler); +#endif // QT_NO_QML_DEBUGGER ExecutionContext *pushGlobalContext(); void pushContext(Heap::ExecutionContext *context); @@ -485,8 +493,10 @@ public: private: void failStackLimitCheck(Scope &scope); +#ifndef QT_NO_QML_DEBUGGER QV4::Debugging::Debugger *m_debugger; QV4::Profiling::Profiler *m_profiler; +#endif }; // This is a trick to tell the code generators that functions taking a NoThrowContext won't |