diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-12-14 08:39:45 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-12-14 08:39:45 (GMT) |
commit | af688178ed2cbfeb72cd43205178e9f797ffefdc (patch) | |
tree | 17637ad2b7c2e712e9f3f0cfecdbdeaf78525675 /src/declarative/qml/qmlcompiler.cpp | |
parent | 6a99fc240fc0644065d775d7f764792bdf6ee717 (diff) | |
download | Qt-af688178ed2cbfeb72cd43205178e9f797ffefdc.zip Qt-af688178ed2cbfeb72cd43205178e9f797ffefdc.tar.gz Qt-af688178ed2cbfeb72cd43205178e9f797ffefdc.tar.bz2 |
Binding optimizer extensions
Diffstat (limited to 'src/declarative/qml/qmlcompiler.cpp')
-rw-r--r-- | src/declarative/qml/qmlcompiler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlcompiler.cpp b/src/declarative/qml/qmlcompiler.cpp index fa7da95..34608d6 100644 --- a/src/declarative/qml/qmlcompiler.cpp +++ b/src/declarative/qml/qmlcompiler.cpp @@ -2536,12 +2536,13 @@ bool QmlCompiler::completeComponentBuild() expr.context = binding.bindingContext.object; expr.property = binding.property; expr.expression = binding.expression; + expr.imports = unit->imports; bs.compile(expr); if (qmlExperimental() && (!bs.isValid() || (!bs.isSingleIdFetch() && !bs.isSingleContextProperty()))) { - QByteArray qmvdata = QmlBindingVME::compile(expr); + QByteArray qmvdata = QmlBindingVME::compile(expr, QmlEnginePrivate::get(engine)); if (!qmvdata.isEmpty()) { qWarning() << expr.expression.asScript(); QmlBindingVME::dump(qmvdata); @@ -2566,6 +2567,7 @@ bool QmlCompiler::completeComponentBuild() // Pre-rewrite the expression QString expression = binding.expression.asScript(); + qWarning() << "Unoptimized" << expression; // ### Optimize QmlRewrite::SharedBindingTester sharableTest; |