aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4string.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-09-12 19:43:14 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2018-09-14 10:07:31 +0000
commit53afbba6dc95e69a13b99e8035fd35582ef952e4 (patch)
treecc8596b4cf9d17c2694a436943b55778f82e6545 /src/qml/jsruntime/qv4string.cpp
parent69359ed4e500081d39bdc0436afa1f7e5f8fdd9d (diff)
Inline StringOrSymbol::toPropertyKey()
Save some instructions when converting a Stirng to a property key. Change-Id: Ide05ba8a54b504f5e606bdcdab53a2a0afeb9436 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4string.cpp')
-rw-r--r--src/qml/jsruntime/qv4string.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/qml/jsruntime/qv4string.cpp b/src/qml/jsruntime/qv4string.cpp
index 911103c05d..68d65f2e24 100644
--- a/src/qml/jsruntime/qv4string.cpp
+++ b/src/qml/jsruntime/qv4string.cpp
@@ -250,13 +250,6 @@ void Heap::StringOrSymbol::createHashValue() const
stringHash = QV4::String::calculateHashValue(ch, end, &subtype);
}
-PropertyKey StringOrSymbol::toPropertyKey() const {
- if (d()->identifier.isValid())
- return d()->identifier;
- createPropertyKey();
- return propertyKey();
-}
-
qint64 String::virtualGetLength(const Managed *m)
{
return static_cast<const String *>(m)->d()->length();