aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4managed_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-12-01 09:07:34 +0100
committerLars Knoll <lars.knoll@qt.io>2018-05-03 20:05:09 +0000
commit7e6485a046fde121f0e6fdf954162354939ff1d8 (patch)
tree6eb3d377de1080211850486fcac6d8c2b6ddf4ff /src/qml/jsruntime/qv4managed_p.h
parent02b20c37ed544e6226f4d4d377bc272852e06357 (diff)
Don't use bitfields for VTable flags
Accessing those is significantly slower than using a byte for each flag. As they are performance critical, let's rather use some more bytes in the vtable. Change-Id: I7104d3b791f469fe5d6705f20db0c965878126e2 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4managed_p.h')
-rw-r--r--src/qml/jsruntime/qv4managed_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4managed_p.h b/src/qml/jsruntime/qv4managed_p.h
index 32688d1b71..b60602b34c 100644
--- a/src/qml/jsruntime/qv4managed_p.h
+++ b/src/qml/jsruntime/qv4managed_p.h
@@ -141,8 +141,8 @@ inline void qYouForgotTheQ_MANAGED_Macro(T1, T2) {}
classname::IsErrorObject, \
classname::IsArrayData, \
classname::IsStringOrSymbol, \
- 0, \
classname::MyType, \
+ { 0, 0, 0, 0 }, \
#classname, \
Q_VTABLE_FUNCTION(classname, destroy), \
classname::Data::markObjects, \