diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-01-03 17:00:36 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2019-03-20 13:26:59 +0000 |
commit | 710580aa84c5c3273e883d9e650f3159ad8250f3 (patch) | |
tree | 40cedea160afc2d9e659a1c8ff029b9a8916e469 /src/qml/jsruntime/qv4lookup_p.h | |
parent | 69d76d59cec0dcff4c52eef24e779fbef14beeca (diff) |
Accelerate access to singletons and imported scripts
Use a dedicated lookup type to provide super fast access to engine wide
singleton objects as well as scripts
Task-number: QTBUG-69898
Change-Id: Ie430f48f6576a9171018ef18742dcf6b2adb4310
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4lookup_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4lookup_p.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4lookup_p.h b/src/qml/jsruntime/qv4lookup_p.h index e4d9ad8328..2384a1194e 100644 --- a/src/qml/jsruntime/qv4lookup_p.h +++ b/src/qml/jsruntime/qv4lookup_p.h @@ -129,6 +129,15 @@ struct Lookup { QQmlPropertyCache *propertyCache; QQmlPropertyData *propertyData; } qgadgetLookup; + struct { + quintptr unused1; + quintptr unused2; + int scriptIndex; + } qmlContextScriptLookup; + struct { + Heap::Object *singleton; + quintptr unused; + } qmlContextSingletonLookup; }; uint nameIndex; |