diff options
Diffstat (limited to 'src/qml/qml/qqmlcompiler_p.h')
-rw-r--r-- | src/qml/qml/qqmlcompiler_p.h | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/src/qml/qml/qqmlcompiler_p.h b/src/qml/qml/qqmlcompiler_p.h index c8e5c907e0..142d8c68b1 100644 --- a/src/qml/qml/qqmlcompiler_p.h +++ b/src/qml/qml/qqmlcompiler_p.h @@ -302,6 +302,16 @@ namespace QQmlCompilerTypes { typedef QFieldList<O, &O::nextAliasingObject> AliasingObjectsList; AliasingObjectsList aliasingObjects; QQmlScript::Object *root; + QList<QQmlJS::AST::Node*> functionsToCompile; + QVector<int> runtimeFunctionIndices; + + struct CompiledMetaMethod + { + QQmlScript::Object *obj; + int methodIndex; + int compiledFunctionIndex; // index in functionToCompile + }; + QList<CompiledMetaMethod> compiledMetaMethods; }; }; @@ -461,21 +471,7 @@ private: int cachedComponentTypeRef; int cachedTranslationContextIndex; - QList<QQmlJS::AST::Node*> functionsToCompile; - QList<QQmlCompilerTypes::JSBindingReference*> allBindingReferenceRoots; - struct CompiledMetaMethod - { - QQmlScript::Object *obj; - int methodIndex; - int compiledFunctionIndex; // index in functionToCompile - }; - QList<CompiledMetaMethod> compiledMetaMethods; - struct CompiledSignalHandlerExpression - { - QQmlScript::Value *signal; - int compiledHandlerIndex; // index in functionsToCompile - }; - QList<CompiledSignalHandlerExpression> compiledSignalHandlers; + QScopedPointer<QQmlJS::V4IR::Module> jsModule; // Compiler component statistics. Only collected if QML_COMPILER_STATS=1 struct ComponentStat |