diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-05-05 14:16:27 +1000 |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-05-05 15:26:04 +1000 |
commit | 21521c2d28e7c00e859fd2a28263b716d550c0fc (patch) | |
tree | 9f24a0951cc45b6c6ade30578658e4136fd6fc5e /src/declarative/qml/qdeclarativecompiler_p.h | |
parent | cb661b8fd32b20b4a90b13fa49e2a21f41b2e87d (diff) |
Inline static data for basic types into the QML instruction
The following types are now entirely inline:
QPoint, QPointF
QSize, QSizeF
QRect, QRectF
QVector3D,
QTime, QDateTime
CustomTypeData
Reviewed-by: Martin Jones
Change-Id: I7024d136c77f8fb23ef6a6abb23ddfe0f9f8a1ca
Diffstat (limited to 'src/declarative/qml/qdeclarativecompiler_p.h')
-rw-r--r-- | src/declarative/qml/qdeclarativecompiler_p.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/declarative/qml/qdeclarativecompiler_p.h b/src/declarative/qml/qdeclarativecompiler_p.h index 3697d3ace2..417a1fafb1 100644 --- a/src/declarative/qml/qdeclarativecompiler_p.h +++ b/src/declarative/qml/qdeclarativecompiler_p.h @@ -102,21 +102,12 @@ public: QDeclarativePropertyCache *createPropertyCache(QDeclarativeEngine *); }; QList<TypeReference> types; - struct CustomTypeData - { - int index; - int type; - }; const QMetaObject *root; QAbstractDynamicMetaObject rootData; QDeclarativePropertyCache *rootPropertyCache; QList<QString> primitives; - QList<float> floatData; - QList<int> intData; - QList<CustomTypeData> customTypeData; QList<QByteArray> datas; - QList<QDeclarativeParser::Location> locations; QByteArray bytecode; QList<QScriptProgram *> cachedPrograms; QList<QScriptValue *> cachedClosures; @@ -144,10 +135,6 @@ private: int indexForString(const QString &); int indexForByteArray(const QByteArray &); - int indexForFloat(float *, int); - int indexForInt(int *, int); - int indexForLocation(const QDeclarativeParser::Location &); - int indexForLocation(const QDeclarativeParser::LocationSpan &); int indexForUrl(const QUrl &); }; |