Changeset 58001 in webkit for trunk/JavaScriptCore/runtime/Identifier.cpp
- Timestamp:
- Apr 21, 2010, 12:13:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Identifier.cpp
r57879 r58001 30 30 #include <wtf/HashSet.h> 31 31 #include <wtf/WTFThreadData.h> 32 #include <wtf/text/StringHash.h> 32 33 33 34 using WTF::ThreadSpecific; … … 101 102 } 102 103 103 struct CStringTranslator {104 struct IdentifierCStringTranslator { 104 105 static unsigned hash(const char* c) 105 106 { … … 140 141 return iter->second; 141 142 142 pair<HashSet<UString::Rep*>::iterator, bool> addResult = identifierTable.add<const char*, CStringTranslator>(c);143 pair<HashSet<UString::Rep*>::iterator, bool> addResult = identifierTable.add<const char*, IdentifierCStringTranslator>(c); 143 144 144 145 // If the string is newly-translated, then we need to adopt it. … … 161 162 }; 162 163 163 struct UCharBufferTranslator {164 struct IdentifierUCharBufferTranslator { 164 165 static unsigned hash(const UCharBuffer& buf) 165 166 { … … 193 194 return UString::Rep::empty(); 194 195 UCharBuffer buf = {s, length}; 195 pair<HashSet<UString::Rep*>::iterator, bool> addResult = globalData->identifierTable->add<UCharBuffer, UCharBufferTranslator>(buf);196 pair<HashSet<UString::Rep*>::iterator, bool> addResult = globalData->identifierTable->add<UCharBuffer, IdentifierUCharBufferTranslator>(buf); 196 197 197 198 // If the string is newly-translated, then we need to adopt it.
Note:
See TracChangeset
for help on using the changeset viewer.