Lines Matching defs:key
155 void Dictionary<Derived, Shape>::SetEntry(InternalIndex entry, Object key,
159 DCHECK(!key.IsName() || details.dictionary_index() > 0);
163 this->set(index + Derived::kEntryKeyIndex, key, mode);
245 void GlobalDictionary::SetEntry(InternalIndex entry, Object key, Object value,
247 DCHECK_EQ(key, PropertyCell::cast(value).name());
261 bool NumberDictionaryBaseShape::IsMatch(uint32_t key, Object other) {
263 return key == static_cast<uint32_t>(other.Number());
266 uint32_t NumberDictionaryBaseShape::Hash(ReadOnlyRoots roots, uint32_t key) {
267 return ComputeSeededHash(key, HashSeed(roots));
278 uint32_t key) {
279 return isolate->factory()->NewNumberFromUint(key);
283 uint32_t key) {
284 return isolate->factory()->NewNumberFromUint<AllocationType::kOld>(key);
295 bool NameDictionaryShape::IsMatch(Handle<Name> key, Object other) {
297 DCHECK(key->IsUniqueName());
298 return *key == other;
301 uint32_t NameDictionaryShape::Hash(ReadOnlyRoots roots, Handle<Name> key) {
302 DCHECK(key->IsUniqueName());
303 return key->hash();
311 bool GlobalDictionaryShape::IsMatch(Handle<Name> key, Object other) {
312 DCHECK(key->IsUniqueName());
314 return *key == PropertyCell::cast(other).name();
323 Handle<Name> key) {
324 DCHECK(key->IsUniqueName());
325 return key;
329 Handle<Name> key) {
330 DCHECK(key->IsUniqueName());
331 return key;