summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcompiler.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-12-14 08:39:45 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-12-14 08:39:45 (GMT)
commitaf688178ed2cbfeb72cd43205178e9f797ffefdc (patch)
tree17637ad2b7c2e712e9f3f0cfecdbdeaf78525675 /src/declarative/qml/qmlcompiler.cpp
parent6a99fc240fc0644065d775d7f764792bdf6ee717 (diff)
downloadQt-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.cpp4
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;