aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2015-04-13 13:46:40 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-04-21 06:37:00 +0000
commit9bf52362545ca3f2eab2f307c4523cf9195365b2 (patch)
tree6f28ea22d548fb6849ca1dd469f789a5c862f966 /src/qml/compiler
parent50bd7d4720eb7d17545734e79a3cef0f42986a06 (diff)
Eliminate remaining property cache string lookups upon object instantiation
Even for the id property binding we can use the property data cache and therefore avoid string hashing. Change-Id: Id9a4ca3159cdfe5ba93060f1bc8626e70140daa1 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler')
-rw-r--r--src/qml/compiler/qqmltypecompiler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/compiler/qqmltypecompiler.cpp b/src/qml/compiler/qqmltypecompiler.cpp
index 25282df2e3..4bdfe444f5 100644
--- a/src/qml/compiler/qqmltypecompiler.cpp
+++ b/src/qml/compiler/qqmltypecompiler.cpp
@@ -2002,6 +2002,11 @@ bool QQmlPropertyValidator::validateObject(int objectIndex, const QV4::CompiledD
}
}
+ if (obj->idIndex) {
+ bool notInRevision = false;
+ collectedBindingPropertyData << propertyResolver.property(QStringLiteral("id"), &notInRevision);
+ }
+
if (customParser && !customBindings.isEmpty()) {
customParser->clearErrors();
customParser->compiler = this;