Home | History | Annotate | Download | only in v8

Lines Matching refs:StringKey

44 // We use StringKey here as the key-type to avoid a string copy to
46 class StringKey {
48 explicit StringKey(const char* str) : m_string(str), m_length(strlen(str)) { }
49 StringKey() : m_string(0), m_length(0) { }
50 explicit StringKey(WTF::HashTableDeletedValueType) : m_string(hashTableDeletedValue()), m_length(0) { }
52 StringKey& operator=(const StringKey& other)
74 inline bool operator==(const StringKey& x, const StringKey& y)
85 // Implement WTF::DefaultHash<StringKey>::Hash interface.
87 static unsigned hash(const StringKey& key)
107 static bool equal(const StringKey& x, const StringKey& y)
117 using npruntime::StringKey;
120 // Implement HashTraits<StringKey>
121 struct StringKeyHashTraits : WTF::GenericHashTraits<StringKey> {
122 static void constructDeletedValue(StringKey& slot)
124 new (&slot) StringKey(WTF::HashTableDeletedValue);
127 static bool isDeletedValue(const StringKey& value)
133 typedef WTF::HashMap<StringKey, PrivateIdentifier*, StringKeyHash, StringKeyHashTraits> StringIdentifierMap;
161 StringKey key(name);