Changeset 32760 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- May 1, 2008, 9:32:32 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/identifier.cpp
r32222 r32760 29 29 #include <wtf/FastMalloc.h> 30 30 #include <wtf/HashSet.h> 31 //#include <wtf/StrHash.h> 31 32 #if USE(MULTIPLE_THREADS) 32 33 #include <wtf/ThreadSpecific.h> 33 34 using namespace WTF; 34 35 #endif 35 36 namespace WTF {37 38 template<typename T> struct DefaultHash;39 template<typename T> struct StrHash;40 41 template<> struct StrHash<KJS::UString::Rep *> {42 static unsigned hash(const KJS::UString::Rep *key) { return key->hash(); }43 static bool equal(const KJS::UString::Rep *a, const KJS::UString::Rep *b) { return KJS::Identifier::equal(a, b); }44 static const bool safeToCompareToEmptyOrDeleted = false;45 };46 47 template<> struct DefaultHash<KJS::UString::Rep *> {48 typedef StrHash<KJS::UString::Rep *> Hash;49 };50 51 }52 36 53 37 namespace KJS {
Note:
See TracChangeset
for help on using the changeset viewer.