Home | History | Annotate | Download | only in v8

Lines Matching refs:StringKey

46 // We use StringKey here as the key-type to avoid a string copy to
48 class StringKey {
50 explicit StringKey(const char* str) : m_string(str), m_length(strlen(str)) { }
51 StringKey() : m_string(0), m_length(0) { }
52 explicit StringKey(WTF::HashTableDeletedValueType) : m_string(hashTableDeletedValue()), m_length(0) { }
54 StringKey& operator=(const StringKey& other)
76 inline bool operator==(const StringKey& x, const StringKey& y)
87 // Implement WTF::DefaultHash<StringKey>::Hash interface.
89 static unsigned hash(const StringKey& key)
109 static bool equal(const StringKey& x, const StringKey& y)
119 using npruntime::StringKey;
122 // Implement HashTraits<StringKey>
123 struct StringKeyHashTraits : WTF::GenericHashTraits<StringKey> {
124 static void constructDeletedValue(StringKey& slot)
126 new (&slot) StringKey(WTF::HashTableDeletedValue);
129 static bool isDeletedValue(const StringKey& value)
135 typedef WTF::HashMap<StringKey, PrivateIdentifier*, StringKeyHash, StringKeyHashTraits> StringIdentifierMap;
163 StringKey key(name);