diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-25 15:09:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-25 15:09:11 +0200 |
commit | a89b2ebb8e192c5e8cea21079bda2ee2c0c7dddd (patch) | |
tree | b7abd9f49ae1d4d2e426a5883bfccd42b8e2ee12 /Source/JavaScriptCore/runtime/Lookup.h | |
parent | 8d473cf9743f1d30a16a27114e93bd5af5648d23 (diff) | |
download | qtwebkit-a89b2ebb8e192c5e8cea21079bda2ee2c0c7dddd.tar.gz |
Imported WebKit commit eb5c1b8fe4d4b1b90b5137433fc58a91da0e6878 (http://svn.webkit.org/repository/webkit/trunk@118516)
Diffstat (limited to 'Source/JavaScriptCore/runtime/Lookup.h')
-rw-r--r-- | Source/JavaScriptCore/runtime/Lookup.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/JavaScriptCore/runtime/Lookup.h b/Source/JavaScriptCore/runtime/Lookup.h index d6806ae0c..a75b521cd 100644 --- a/Source/JavaScriptCore/runtime/Lookup.h +++ b/Source/JavaScriptCore/runtime/Lookup.h @@ -199,17 +199,21 @@ namespace JSC { } private: - ALWAYS_INLINE const HashEntry* entry(PropertyName identifier) const + ALWAYS_INLINE const HashEntry* entry(PropertyName propertyName) const { + StringImpl* impl = propertyName.publicName(); + if (!impl) + return 0; + ASSERT(table); - const HashEntry* entry = &table[identifier.impl()->existingHash() & compactHashSizeMask]; + const HashEntry* entry = &table[impl->existingHash() & compactHashSizeMask]; if (!entry->key()) return 0; do { - if (entry->key() == identifier.impl()) + if (entry->key() == impl) return entry; entry = entry->next(); } while (entry); |