aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4enginebase_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-08-29 19:11:42 +0200
committerUlf Hermann <ulf.hermann@qt.io>2022-08-30 12:40:23 +0200
commit4c3098ab106fae8f2ee256950cdbc8b8da29aa1b (patch)
treee915ac4440ad35dadec82b37009f28418b298c70 /src/qml/jsruntime/qv4enginebase_p.h
parentd183606126962e91508de80b8f3ea050ee663ae7 (diff)
V4: Do not update proto usage before engine is fully initialized
Updating the prototype usage is very expensive. We only need to do it once there are lookups. Before the engine is fully initialized there are no lookups. Change-Id: Ic919a1f8955718d417e7747ea72e009d443c42fd Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4enginebase_p.h')
-rw-r--r--src/qml/jsruntime/qv4enginebase_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4enginebase_p.h b/src/qml/jsruntime/qv4enginebase_p.h
index dc69529860..dd85f17717 100644
--- a/src/qml/jsruntime/qv4enginebase_p.h
+++ b/src/qml/jsruntime/qv4enginebase_p.h
@@ -44,7 +44,8 @@ struct Q_QML_EXPORT EngineBase {
#endif
quint8 isExecutingInRegExpJIT = false;
- quint8 padding[3];
+ quint8 isInitialized = false;
+ quint8 padding[2];
MemoryManager *memoryManager = nullptr;
qint32 callDepth = 0;