Changeset 27132 in webkit for trunk/JavaScriptCore
- Timestamp:
- Oct 26, 2007, 4:31:14 PM (18 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r27130 r27132 1 2007-10-26 Geoffrey Garen <[email protected]> 2 3 Suggested by Darin Adler. 4 5 Use computedHash(), which is safer than just directly accessing _hash. 6 7 * kjs/lookup.cpp: 8 (KJS::Lookup::findEntry): 9 (KJS::Lookup::find): 10 1 11 2007-10-26 Geoffrey Garen <[email protected]> 2 12 -
trunk/JavaScriptCore/kjs/lookup.cpp
r26956 r27132 60 60 const HashEntry* Lookup::findEntry(const struct HashTable* table, const Identifier& s) 61 61 { 62 return KJS::findEntry(table, s.ustring().rep()-> _hash, s.data(), s.size());62 return KJS::findEntry(table, s.ustring().rep()->computedHash(), s.data(), s.size()); 63 63 } 64 64 … … 73 73 int Lookup::find(const struct HashTable* table, const Identifier& s) 74 74 { 75 const HashEntry* entry = KJS::findEntry(table, s.ustring().rep()-> _hash, s.data(), s.size());75 const HashEntry* entry = KJS::findEntry(table, s.ustring().rep()->computedHash(), s.data(), s.size()); 76 76 if (entry) 77 77 return entry->value;
Note:
See TracChangeset
for help on using the changeset viewer.