diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-10-09 00:24:55 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-11 22:55:02 +0200 |
commit | 774963f52f569e637f45d6c6079121253e54b61b (patch) | |
tree | b007dcdbe49a90db727593d4e1966c92d4622dee /src/qml/qml/qqmlcompiler_p.h | |
parent | c39393e7de5b808adbc9c5771ecca161c9660d7c (diff) |
Compile JS functions as part of the QQmlCompiler run in the loader thread
...instead of extracting the function body as a string and compiling it in the
GUI thread.
Change-Id: I3c3108f6e35464b5581a2d8b5799e7285858ce4d
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcompiler_p.h')
-rw-r--r-- | src/qml/qml/qqmlcompiler_p.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlcompiler_p.h b/src/qml/qml/qqmlcompiler_p.h index 9ad0b7f0f9..1d1306fba4 100644 --- a/src/qml/qml/qqmlcompiler_p.h +++ b/src/qml/qml/qqmlcompiler_p.h @@ -463,6 +463,13 @@ private: QList<QQmlJS::AST::Node*> functionsToCompile; QList<QQmlCompilerTypes::JSBindingReference*> allBindingReferenceRoots; + struct CompiledMetaMethod + { + QQmlScript::Object *obj; + int methodIndex; + int compiledFunctionIndex; // index in functionToCompile + }; + QList<CompiledMetaMethod> compiledMetaMethods; // Compiler component statistics. Only collected if QML_COMPILER_STATS=1 struct ComponentStat |