Lines Matching defs:map

22 #include "src/utils/identity-map.h"
68 Map map = receiver->map();
69 int nof_descriptors = map.NumberOfOwnDescriptors();
72 Handle<DescriptorArray> descs(map.instance_descriptors(isolate), isolate);
112 Handle<Map>(receiver_->map(), isolate_), isolate_);
304 Map map = object.map();
305 DCHECK_EQ(kInvalidEnumCacheSentinel, map.EnumLength());
306 if (!map.OnlyHasSimpleProperties()) return;
307 if (map.IsJSProxyMap()) return;
308 if (map.NumberOfEnumerableProperties() > 0) return;
310 map.SetEnumLength(0);
314 if (object.map().EnumLength() == kInvalidEnumCacheSentinel) {
317 if (object.map().EnumLength() != 0) return false;
331 !receiver_->map().IsCustomElementsReceiverMap();
353 receiver_->map().EnumLength() != kInvalidEnumCacheSentinel &&
373 Handle<Map> map(object->map(), isolate);
375 map->instance_descriptors(isolate).enum_cache().keys(), isolate);
377 // Check if the {map} has a valid enum length, which implies that it
379 int enum_length = map->EnumLength();
381 DCHECK(map->OnlyHasSimpleProperties());
383 DCHECK_EQ(enum_length, map->NumberOfEnumerableProperties());
388 // Determine the actual number of enumerable properties of the {map}.
389 enum_length = map->NumberOfEnumerableProperties();
391 // Check if there's already a shared enum cache on the {map}s
394 if (map->OnlyHasSimpleProperties()) map->SetEnumLength(enum_length);
400 Handle<DescriptorArray>(map->instance_descriptors(isolate), isolate);
407 for (InternalIndex i : map->IterateOwnDescriptors()) {
424 for (InternalIndex i : map->IterateOwnDescriptors()) {
432 FieldIndex field_index = FieldIndex::ForDescriptor(*map, i);
441 if (map->OnlyHasSimpleProperties()) map->SetEnumLength(enum_length);
501 Map map = receiver_->map();
502 if (!own_only || map.IsCustomElementsReceiverMap()) {
511 if (map.is_dictionary_map()) {
515 int enum_length = receiver_->map().EnumLength();
525 object->map().EnumLength() != kInvalidEnumCacheSentinel;
539 Map map = object->map();
546 int number_of_own_descriptors = map.NumberOfOwnDescriptors();
548 map.SetEnumLength(0);
579 if (receiver_->map().is_dictionary_map()) {
640 HeapObject prototype = receiver->map().prototype();
642 if (!prototype.map().is_prototype_map() ||
643 !prototype.map().prototype_info().IsPrototypeInfo()) {
647 Handle<Map> map(prototype.map(), isolate_);
648 first_prototype_map_ = map;
649 has_prototype_info_cache_ = map->IsPrototypeValidityCellValid() &&
650 PrototypeInfo::cast(map->prototype_info())
988 Map map = object->map();
989 int nof_descriptors = map.NumberOfOwnDescriptors();
991 if (map.prototype(isolate_) != ReadOnlyRoots(isolate_).null_value()) {
994 map.instance_descriptors(isolate_), isolate_);
1028 int limit = object->map().NumberOfOwnDescriptors();
1030 object->map().instance_descriptors(isolate_), isolate_);
1061 int limit = object->map().NumberOfOwnDescriptors();
1062 Handle<DescriptorArray> descs(object->map().instance_descriptors(isolate_),