diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-03-01 09:58:04 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2019-03-21 14:16:32 +0000 |
commit | 4d80e1c6a9d04d87b3ddcb3e1724281525a27442 (patch) | |
tree | 8d0fd18ba5176db7a1783183ad14a9c10bee62b9 /src/qml/jsruntime/qv4qmlcontext_p.h | |
parent | d47f0ce2cb6d6fb2c0d0a449d17d8c1dacbbcbe4 (diff) |
Accelerate lookups of properties in outer QML contexts
If we can determine with certainty that a property cannot be found in
the innermost QML context, then we can avoid one entire iteration for
all future lookups.
Task-number: QTBUG-69898
Change-Id: I2a579aa9f60811a818e45235a60a93fc2ede3206
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4qmlcontext_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4qmlcontext_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4qmlcontext_p.h b/src/qml/jsruntime/qv4qmlcontext_p.h index 6375294375..4c8287ef2f 100644 --- a/src/qml/jsruntime/qv4qmlcontext_p.h +++ b/src/qml/jsruntime/qv4qmlcontext_p.h @@ -111,6 +111,7 @@ struct Q_QML_EXPORT QQmlContextWrapper : Object static ReturnedValue lookupScopeObjectProperty(Lookup *l, ExecutionEngine *engine, Value *base); static ReturnedValue lookupContextObjectProperty(Lookup *l, ExecutionEngine *engine, Value *base); static ReturnedValue lookupInGlobalObject(Lookup *l, ExecutionEngine *engine, Value *base); + static ReturnedValue lookupInParentContextHierarchy(Lookup *l, ExecutionEngine *engine, Value *base); }; struct Q_QML_EXPORT QmlContext : public ExecutionContext |