diff options
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); |