diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-01-04 15:32:33 +0100 |
---|---|---|
committer | Michael Brasser <michael.brasser@live.com> | 2019-03-20 16:42:44 +0000 |
commit | bb34abcc05d11f23c329f4c52aab638d991c1b98 (patch) | |
tree | fe568cb09a5f184c1c3b2470a76b56d1709a67c8 /src/qml/jsruntime/qv4lookup_p.h | |
parent | 40ae0bfd9977e53a87384d79ae971a7ded260a12 (diff) |
Fix lookup fallback into the global object in QML bindings
This change addresses in particular qmlbench's fib10.qml, where usage of
properties of the global object needs to go be accelerated in order to
avoid regressing in performance.
Task-number: QTBUG-69898
Change-Id: Ic43c64f4dd5459c4e92f87f03235ea836f971515
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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4lookup_p.h b/src/qml/jsruntime/qv4lookup_p.h index 68da224273..ee6da21121 100644 --- a/src/qml/jsruntime/qv4lookup_p.h +++ b/src/qml/jsruntime/qv4lookup_p.h @@ -143,6 +143,13 @@ struct Lookup { quintptr unused2; int objectId; } qmlContextIdObjectLookup; + struct { + // Same as protoLookup, as used for global lookups + quintptr reserved1; + quintptr reserved2; + quintptr reserved3; + ReturnedValue (*getterTrampoline)(Lookup *l, ExecutionEngine *engine); + } qmlContextGlobalLookup; }; uint nameIndex; |