aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4executablecompilationunit_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2024-01-08 13:40:12 +0100
committerUlf Hermann <ulf.hermann@qt.io>2024-01-18 14:54:21 +0100
commit4e5c096153b8a5d6e110ef8a6db265b0bc138ce1 (patch)
treeeb91d6c5cd07d880749c587661fd02a92ea64897 /src/qml/jsruntime/qv4executablecompilationunit_p.h
parentffc687dca3ce3c37db6f47523881b457ce6ff6b1 (diff)
QtQml: Move type name cache into base CU
Change-Id: Ie3504f16b34859cdef72f8138e6058dcc2d1f58f Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4executablecompilationunit_p.h')
-rw-r--r--src/qml/jsruntime/qv4executablecompilationunit_p.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/qml/jsruntime/qv4executablecompilationunit_p.h b/src/qml/jsruntime/qv4executablecompilationunit_p.h
index b4d3e413c1..3d9b32d354 100644
--- a/src/qml/jsruntime/qv4executablecompilationunit_p.h
+++ b/src/qml/jsruntime/qv4executablecompilationunit_p.h
@@ -15,14 +15,15 @@
// We mean it.
//
-#include <private/qv4compileddata_p.h>
-#include <private/qv4identifierhash_p.h>
-#include <private/qqmlrefcount_p.h>
#include <private/qintrusivelist_p.h>
+#include <private/qqmlmetatype_p.h>
+#include <private/qqmlnullablevalue_p.h>
#include <private/qqmlpropertycachevector_p.h>
+#include <private/qqmlrefcount_p.h>
#include <private/qqmltype_p.h>
-#include <private/qqmlnullablevalue_p.h>
-#include <private/qqmlmetatype_p.h>
+#include <private/qqmltypenamecache_p.h>
+#include <private/qv4compileddata_p.h>
+#include <private/qv4identifierhash_p.h>
#include <memory>
@@ -78,7 +79,15 @@ public:
QUrl url() const { return m_compilationUnit->url(); }
QUrl finalUrl() const { return m_compilationUnit->finalUrl(); }
- QQmlRefPointer<QQmlTypeNameCache> typeNameCache;
+ QQmlRefPointer<QQmlTypeNameCache> typeNameCache() const
+ {
+ return m_compilationUnit->typeNameCache;
+ }
+
+ void setTypeNameCache(const QQmlRefPointer<QQmlTypeNameCache> &typeNameCache)
+ {
+ m_compilationUnit->typeNameCache = typeNameCache;
+ }
const QQmlPropertyCacheVector *propertyCachesPtr() const
{