Changeset 27176 in webkit for trunk/JavaScriptCore/wtf/HashSet.h
- Timestamp:
- Oct 28, 2007, 1:17:39 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/HashSet.h
r25365 r27176 112 112 static unsigned hash(const ValueType& key) { return HashFunctions::hash(key); } 113 113 static bool equal(const StorageType& a, const ValueType& b) { return HashFunctions::equal(*(const ValueType*)&a, b); } 114 static void translate(StorageType& location, const ValueType& key, const ValueType& , unsigned)114 static void translate(StorageType& location, const ValueType& key, const ValueType&) 115 115 { 116 116 Assigner<ValueTraits::needsRef, ValueType, StorageType, ValueTraits>::assign(key, location); … … 123 123 static unsigned hash(const ValueType& key) { return HashFunctions::hash(key); } 124 124 static bool equal(const StorageType& a, const ValueType& b) { return HashFunctions::equal(*(const ValueType*)&a, b); } 125 static void translate(StorageType& location, const ValueType& key, const ValueType& , unsigned)125 static void translate(StorageType& location, const ValueType& key, const ValueType&) 126 126 { 127 127 if (location == StorageTraits::deletedValue()) … … 277 277 const bool canReplaceDeletedValue = !ValueTraits::needsDestruction || StorageTraits::needsDestruction; 278 278 typedef HashSetTranslatorAdapter<canReplaceDeletedValue, ValueType, StorageTraits, T, Translator> Adapter; 279 return m_impl.template add <T, T, Adapter>(value, value);279 return m_impl.template addPassingHashCode<T, T, Adapter>(value, value); 280 280 } 281 281
Note:
See TracChangeset
for help on using the changeset viewer.