aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativecompiler_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2012-02-14 13:55:29 +0000
committerQt by Nokia <qt-info@nokia.com>2012-02-20 16:25:24 +0100
commit157b7452b591d854f837a00ee8715190a5991c4c (patch)
tree2f2dd716b432cb83b3a09a52e3fae4d204f6eacb /src/declarative/qml/qdeclarativecompiler_p.h
parent38dde4b60fcc597d8f24d6c20426eb68b1f615e0 (diff)
Reduce size of QV8Bindings
Change-Id: I4bd8fed3f38aa358fb42e21b5cf19ff1aa61c138 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/declarative/qml/qdeclarativecompiler_p.h')
-rw-r--r--src/declarative/qml/qdeclarativecompiler_p.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/declarative/qml/qdeclarativecompiler_p.h b/src/declarative/qml/qdeclarativecompiler_p.h
index 8ae6685894..637cd80569 100644
--- a/src/declarative/qml/qdeclarativecompiler_p.h
+++ b/src/declarative/qml/qdeclarativecompiler_p.h
@@ -105,14 +105,22 @@ public:
};
QList<TypeReference> types;
- QList<v8::Persistent<v8::Array> > v8bindings;
+ struct V8Program {
+ V8Program(const QByteArray &p, QDeclarativeCompiledData *c)
+ : program(p), cdata(c) {}
+
+ QByteArray program;
+ v8::Persistent<v8::Array> bindings;
+ QDeclarativeCompiledData *cdata;
+ };
+
+ QList<V8Program> programs;
const QMetaObject *root;
QAbstractDynamicMetaObject rootData;
QDeclarativePropertyCache *rootPropertyCache;
QList<QString> primitives;
QList<QByteArray> datas;
- QList<QByteArray> programs;
QByteArray bytecode;
QList<QDeclarativePropertyCache *> propertyCaches;
QList<QDeclarativeIntegerCache *> contextCaches;