From a89b2ebb8e192c5e8cea21079bda2ee2c0c7dddd Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 25 May 2012 15:09:11 +0200 Subject: Imported WebKit commit eb5c1b8fe4d4b1b90b5137433fc58a91da0e6878 (http://svn.webkit.org/repository/webkit/trunk@118516) --- Source/JavaScriptCore/runtime/Lookup.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Source/JavaScriptCore/runtime/Lookup.h') 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); -- cgit v1.2.1