diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2016-05-23 14:15:47 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2016-05-24 04:04:26 +0000 |
commit | 46c6db6f58fadb2bc4d3e9be5a7f93824e43db64 (patch) | |
tree | 372b340de6e6013b4f63fdfd9159e735e3e2d258 /src/qml/compiler/qqmlirbuilder.cpp | |
parent | 81dfb0bdebb5432828f77eb4c0b1eb3a8366d8de (diff) |
Shrink QQmlVMEMetaData::AliasData
We can retrieve the alias property index from the QV4::CompiledData::Alias and the
property type from the property cache (only needed for aliases to value types).
Change-Id: Ibf0cb909a4cd1ce1c2d67b57e1be1de491d4d598
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/qml/compiler/qqmlirbuilder.cpp')
-rw-r--r-- | src/qml/compiler/qqmlirbuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qqmlirbuilder.cpp b/src/qml/compiler/qqmlirbuilder.cpp index ac59c04e87..a1713dd809 100644 --- a/src/qml/compiler/qqmlirbuilder.cpp +++ b/src/qml/compiler/qqmlirbuilder.cpp @@ -1133,7 +1133,7 @@ bool IRBuilder::appendAlias(QQmlJS::AST::UiPublicMember *node) alias->location.line = loc.startLine; alias->location.column = loc.startColumn; - alias->propertyIndex = emptyStringIndex; + alias->propertyNameIndex = emptyStringIndex; if (!node->statement && !node->binding) COMPILE_EXCEPTION(loc, tr("No property alias location")); @@ -1171,7 +1171,7 @@ bool IRBuilder::appendAlias(QQmlJS::AST::UiPublicMember *node) QString propertyValue = aliasReference.value(1); if (aliasReference.count() == 3) propertyValue += QLatin1Char('.') + aliasReference.at(2); - alias->propertyIndex = registerString(propertyValue); + alias->propertyNameIndex = registerString(propertyValue); QQmlJS::AST::SourceLocation errorLocation; QString error; |