From e354d8b43c7d9331ea0bf77f0f5342b2fd1b53ee Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 30 Apr 2021 10:23:34 +0200 Subject: Remove caching of recursive AOT context lookups Such lookups are usually caused by repeaters or similar constructs where many objects look up something in their parent context. As all those objects have different contexts, we would constantly invalidate the cache. Change-Id: I06c7d337d859e5e6a81f6e9a8693b155b2af7498 Reviewed-by: Fabian Kosmale --- src/qml/jsruntime/qv4qmlcontext.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/qml/jsruntime/qv4qmlcontext.cpp') diff --git a/src/qml/jsruntime/qv4qmlcontext.cpp b/src/qml/jsruntime/qv4qmlcontext.cpp index f845f1d6e5..e1eb7b7a86 100644 --- a/src/qml/jsruntime/qv4qmlcontext.cpp +++ b/src/qml/jsruntime/qv4qmlcontext.cpp @@ -566,6 +566,12 @@ ReturnedValue QQmlContextWrapper::lookupIdObject(Lookup *l, ExecutionEngine *eng return QV4::QObjectWrapper::wrap(engine, context->idValue(objectId)); } +ReturnedValue QQmlContextWrapper::lookupIdObjectInParentContext( + Lookup *l, ExecutionEngine *engine, Value *base) +{ + return QQmlContextWrapper::resolveQmlContextPropertyLookupGetter(l, engine, base); +} + ReturnedValue QQmlContextWrapper::lookupScopeObjectProperty(Lookup *l, ExecutionEngine *engine, Value *base) { Scope scope(engine); -- cgit v1.2.3