summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcompiler_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-09-28 11:21:25 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-05 02:39:01 (GMT)
commit061c85a17ecb303676b548e6daef6e64967ca1e7 (patch)
tree76cc1c8b2d33c0040794f1c161e95b4694e1bbad /src/declarative/qml/qmlcompiler_p.h
parentf9f878ca1fff08b6ea24507a84adfeb16d8938b6 (diff)
downloadQt-061c85a17ecb303676b548e6daef6e64967ca1e7.zip
Qt-061c85a17ecb303676b548e6daef6e64967ca1e7.tar.gz
Qt-061c85a17ecb303676b548e6daef6e64967ca1e7.tar.bz2
Use QScriptProgram to speed up binding creation
Diffstat (limited to 'src/declarative/qml/qmlcompiler_p.h')
-rw-r--r--src/declarative/qml/qmlcompiler_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlcompiler_p.h b/src/declarative/qml/qmlcompiler_p.h
index 00637e3..447c421 100644
--- a/src/declarative/qml/qmlcompiler_p.h
+++ b/src/declarative/qml/qmlcompiler_p.h
@@ -69,6 +69,7 @@ class QmlEngine;
class QmlComponent;
class QmlContext;
+class QScriptProgram;
class QmlCompiledData : public QmlRefCount
{
public:
@@ -106,6 +107,7 @@ public:
QList<QByteArray> datas;
QList<QmlParser::Location> locations;
QList<QmlInstruction> bytecode;
+ QList<QScriptProgram *> programs;
void dumpInstructions();
private:
@@ -253,12 +255,10 @@ private:
struct ComponentCompileState
{
ComponentCompileState()
- : parserStatusCount(0), savedObjects(0),
- pushedProperties(0), root(0) {}
+ : parserStatusCount(0), pushedProperties(0), root(0) {}
QHash<QString, QmlParser::Object *> ids;
QHash<int, QmlParser::Object *> idIndexes;
int parserStatusCount;
- int savedObjects;
int pushedProperties;
QHash<QmlParser::Value *, BindingReference> bindings;