diff options
author | Lars Knoll <[email protected]> | 2018-09-12 19:43:14 +0200 |
---|---|---|
committer | Erik Verbruggen <[email protected]> | 2018-09-14 10:07:31 +0000 |
commit | 53afbba6dc95e69a13b99e8035fd35582ef952e4 (patch) | |
tree | cc8596b4cf9d17c2694a436943b55778f82e6545 /src/qml/jsruntime/qv4string.cpp | |
parent | 69359ed4e500081d39bdc0436afa1f7e5f8fdd9d (diff) |
Inline StringOrSymbol::toPropertyKey()
Save some instructions when converting a Stirng to a property
key.
Change-Id: Ide05ba8a54b504f5e606bdcdab53a2a0afeb9436
Reviewed-by: Simon Hausmann <[email protected]>
Reviewed-by: Erik Verbruggen <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4string.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4string.cpp | 7 |
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(); |