aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvme.cpp
diff options
context:
space:
mode:
authorMatthew Vogt <matthew.vogt@nokia.com>2012-08-17 11:10:10 +1000
committerQt by Nokia <qt-info@nokia.com>2012-08-17 03:53:42 +0200
commit13ae2db97e6d7714fecffc4d65bb785a734fcd35 (patch)
tree6d7e69ba56068c844dac2d2c0d77e23da3a1e026 /src/qml/qml/qqmlvme.cpp
parent625c192f54834a5ff5944ecb76f719543f901824 (diff)
Reduce memory consumption in QV4Bindings::Binding
As with QV8Bindings::Binding, access details from the QML IR instruction object rather than storing a copy of the values. Change-Id: I2b629ee1b06ed74c7b38e6d047ef6a98acd45086 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/qml/qml/qqmlvme.cpp')
-rw-r--r--src/qml/qml/qqmlvme.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlvme.cpp b/src/qml/qml/qqmlvme.cpp
index d6b60f724c..e565321eb9 100644
--- a/src/qml/qml/qqmlvme.cpp
+++ b/src/qml/qml/qqmlvme.cpp
@@ -846,9 +846,7 @@ QObject *QQmlVME::run(QList<QQmlError> *errors,
if (instr.isRoot && BINDINGSKIPLIST.testBit(propertyIdx))
QML_NEXT_INSTR(StoreV4Binding);
- QQmlAbstractBinding *binding =
- CTXT->v4bindings->configBinding(instr.value, instr.fallbackValue, target, scope, instr.property,
- instr.propType, instr.line, instr.column);
+ QQmlAbstractBinding *binding = CTXT->v4bindings->configBinding(target, scope, &instr);
bindValues.push(binding);
binding->m_mePtr = &bindValues.top();