aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4engine_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-09-09 15:23:18 +0200
committerLars Knoll <lars.knoll@theqtcompany.com>2015-09-25 08:40:03 +0000
commit6565e7861043a4b416f05c0c759b9394dc6c5e32 (patch)
treefeb661dac4f99b6f82dd37da7513e992842a8003 /src/qml/jsruntime/qv4engine_p.h
parentc736b099c0376f9b9b1642f23df879f3c7db9b96 (diff)
Reduce memory consumption of signal handlers
Move the connect/disconnect methods for signal handlers into their prototype, so that we don't need to define them per instance anymore. Change-Id: Iac1e6d1dd7bce86730dbb6c51e2c3f79713641f7 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r--src/qml/jsruntime/qv4engine_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h
index 09cfbd226c..ffcd904013 100644
--- a/src/qml/jsruntime/qv4engine_p.h
+++ b/src/qml/jsruntime/qv4engine_p.h
@@ -149,6 +149,7 @@ public:
ArrayBufferProto,
DataViewProto,
ValueTypeProto,
+ SignalHandlerProto,
Object_Ctor,
String_Ctor,
@@ -219,6 +220,7 @@ public:
Object *typedArrayPrototype;
Object *valueTypeWrapperPrototype() const { return reinterpret_cast<Object *>(jsObjects + ValueTypeProto); }
+ Object *signalHandlerPrototype() const { return reinterpret_cast<Object *>(jsObjects + SignalHandlerProto); }
InternalClassPool *classPool;
InternalClass *emptyClass;