diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-11 23:05:02 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-11 23:05:02 (GMT) |
commit | 5e690831db11d5d84dc98589da01bf953f4fe06e (patch) | |
tree | c78c970e1f6914c9d0342c5587df7c0a90f8ae9d /src/declarative/qml/qmlcompiler_p.h | |
parent | da91e9315fb553cb22431a29318f4b006ffb1a42 (diff) | |
download | Qt-5e690831db11d5d84dc98589da01bf953f4fe06e.zip Qt-5e690831db11d5d84dc98589da01bf953f4fe06e.tar.gz Qt-5e690831db11d5d84dc98589da01bf953f4fe06e.tar.bz2 |
Use sub-component metaobjects to improve performance
This reduces the number of runtime-resolved AssignConstant instructions that need to be generated.
Diffstat (limited to 'src/declarative/qml/qmlcompiler_p.h')
-rw-r--r-- | src/declarative/qml/qmlcompiler_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlcompiler_p.h b/src/declarative/qml/qmlcompiler_p.h index b122650..9d2f8f7 100644 --- a/src/declarative/qml/qmlcompiler_p.h +++ b/src/declarative/qml/qmlcompiler_p.h @@ -81,6 +81,7 @@ public: QmlRefCount *ref; QObject *createInstance(QmlContext *) const; + const QMetaObject *metaObject() const; }; QList<TypeReference> types; struct CustomTypeData @@ -88,12 +89,13 @@ public: int index; int type; }; + QAbstractDynamicMetaObject root; QList<QString> primitives; QList<float> floatData; QList<int> intData; QList<CustomTypeData> customTypeData; QList<QByteArray> datas; - QList<QMetaObject *> mos; + QList<QMetaObject *> synthesizedMetaObjects; QList<QmlParser::Location> locations; QList<QmlInstruction> bytecode; |