| Index: Source/wtf/text/AtomicStringHash.h
|
| diff --git a/Source/wtf/text/AtomicStringHash.h b/Source/wtf/text/AtomicStringHash.h
|
| index 96692067a3fcac249fb36ab625ac8471f81458cb..fb5e1e12a35dfafd59f4fdc5a0ff0a86d69993c8 100644
|
| --- a/Source/wtf/text/AtomicStringHash.h
|
| +++ b/Source/wtf/text/AtomicStringHash.h
|
| @@ -50,6 +50,12 @@ namespace WTF {
|
|
|
| // AtomicStringHash is the default hash for AtomicString
|
| template<> struct HashTraits<WTF::AtomicString> : GenericHashTraits<WTF::AtomicString> {
|
| + // Unlike other types, we can return a const reference for AtomicString's empty value (nullAtom).
|
| + typedef const WTF::AtomicString& PeekType;
|
| +
|
| + static const WTF::AtomicString& emptyValue() { return nullAtom; }
|
| + static PeekType peek(const WTF::AtomicString& value) { return value; }
|
| +
|
| static const bool emptyValueIsZero = true;
|
| static void constructDeletedValue(WTF::AtomicString& slot) { new (NotNull, &slot) WTF::AtomicString(HashTableDeletedValue); }
|
| static bool isDeletedValue(const WTF::AtomicString& slot) { return slot.isHashTableDeletedValue(); }
|
|
|