diff options
author | Matthew Vogt <matthew.vogt@nokia.com> | 2012-08-17 11:10:10 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-17 03:53:42 +0200 |
commit | 13ae2db97e6d7714fecffc4d65bb785a734fcd35 (patch) | |
tree | 6d7e69ba56068c844dac2d2c0d77e23da3a1e026 /src/qml/qml/qqmlcompiler.cpp | |
parent | 625c192f54834a5ff5944ecb76f719543f901824 (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/qqmlcompiler.cpp')
-rw-r--r-- | src/qml/qml/qqmlcompiler.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/qml/qml/qqmlcompiler.cpp b/src/qml/qml/qqmlcompiler.cpp index 808e63388f..3805e98802 100644 --- a/src/qml/qml/qqmlcompiler.cpp +++ b/src/qml/qml/qqmlcompiler.cpp @@ -3664,9 +3664,6 @@ bool QQmlCompiler::completeComponentBuild() bool needsFallback = false; int index = bindingCompiler.compile(expr, enginePrivate, &needsFallback); if (index != -1) { - // Ensure the index value fits within the available space - Q_ASSERT(index < (1 << 15)); - binding.dataType = BindingReference::V4; binding.compiledIndex = index; binding.sharedIndex = -1; @@ -3736,8 +3733,6 @@ bool QQmlCompiler::completeComponentBuild() functionArray += expression.toUtf8(); lineNumber += expression.count(QLatin1Char('\n')); - // Ensure the index value fits within the available space - Q_ASSERT(ii < (1 << 15)); reference->sharedIndex = ii; } functionArray.append("]", 1); |