diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-08-05 04:15:10 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-08-05 04:23:22 (GMT) |
commit | 3c85728f2cb69817d4b72d3aab16b7a7fe6bdbf0 (patch) | |
tree | 01e245219495204a92b395797dafa1686347a27b /src/declarative/qml/qmlinstruction.cpp | |
parent | 2995f6eee6f718487c5f982c23cc6a4318fc58bb (diff) | |
download | Qt-3c85728f2cb69817d4b72d3aab16b7a7fe6bdbf0.zip Qt-3c85728f2cb69817d4b72d3aab16b7a7fe6bdbf0.tar.gz Qt-3c85728f2cb69817d4b72d3aab16b7a7fe6bdbf0.tar.bz2 |
Rewrite bindings inside the compiler
To improve execution performance, binding expressions are rewritten as function
closures inside QmlExpression. To improve startup performance, where possible,
the expressions are rewritten inside the compiler instead of inside
QmlExpression at runtime.
This also has the sideeffect of removing the StoreBinding instruction, as all
bindings are now "compiled". The QmlBinding::expression() method for rewritten
bindings will now return the rewritten expression instead of the original (which
is lost), but this API is internal anyway.
Diffstat (limited to 'src/declarative/qml/qmlinstruction.cpp')
-rw-r--r-- | src/declarative/qml/qmlinstruction.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlinstruction.cpp b/src/declarative/qml/qmlinstruction.cpp index 9f77bc0..889a057 100644 --- a/src/declarative/qml/qmlinstruction.cpp +++ b/src/declarative/qml/qmlinstruction.cpp @@ -140,9 +140,6 @@ void QmlCompiledData::dump(QmlInstruction *instr, int idx) case QmlInstruction::AssignCustomType: qWarning() << idx << "\t" << line << "\t" << "ASSIGN_CUSTOMTYPE\t\t" << instr->assignCustomType.propertyIndex << "\t" << instr->assignCustomType.valueIndex; break; - case QmlInstruction::StoreBinding: - qWarning() << idx << "\t" << line << "\t" << "STORE_BINDING\t\t" << instr->assignBinding.property << "\t" << instr->assignBinding.value << "\t\t" << instr->assignBinding.context << primitives.at(instr->assignBinding.value); - break; case QmlInstruction::StoreCompiledBinding: qWarning() << idx << "\t" << line << "\t" << "STORE_COMPILED_BINDING\t" << instr->assignBinding.property << "\t" << instr->assignBinding.value << "\t\t" << instr->assignBinding.context; break; |