Lines Matching defs:map
127 HeapObject prototype = HeapObject::cast(object.map().prototype());
134 Map map = prototype.map();
135 if (map.IsCustomElementsReceiverMap()) return false;
141 prototype = HeapObject::cast(map.prototype());
152 ElementsKind elements_kind = object->map().elements_kind();
210 if (elements->map() != roots.fixed_double_array_map()) {
211 DCHECK(elements->map() == roots.fixed_array_map() ||
212 elements->map() == roots.fixed_cow_array_map());
242 DCHECK((object->map().has_fast_smi_or_object_elements() ||
244 object->map().has_fast_string_wrapper_elements()) ==
245 (value->map() == ReadOnlyRoots(isolate).fixed_array_map() ||
246 value->map() == ReadOnlyRoots(isolate).fixed_cow_array_map()));
248 (object->map().has_fast_double_elements() ==
254 FixedArrayBase elements = map().GetInitialElements();
259 return map(cage_base).GetIndexedInterceptor(cage_base);
263 return map(cage_base).GetNamedInterceptor(cage_base);
267 int JSObject::GetHeaderSize(Map map) {
271 InstanceType instance_type = map.instance_type();
274 : GetHeaderSize(instance_type, map.has_prototype_slot());
278 int JSObject::GetEmbedderFieldsStartOffset(Map map) {
280 return GetHeaderSize(map);
284 return GetEmbedderFieldsStartOffset(map());
288 bool JSObject::MayHaveEmbedderFields(Map map) {
289 InstanceType instance_type = map.instance_type();
298 return MayHaveEmbedderFields(map());
302 int JSObject::GetEmbedderFieldCount(Map map) {
303 int instance_size = map.instance_size();
310 return (((instance_size - GetEmbedderFieldsStartOffset(map)) >>
312 map.GetInObjectProperties()) /
317 return GetEmbedderFieldCount(map());
339 auto instance_type = map().instance_type();
402 // a) Reading the map first
404 // c) Re-read the map with acquire semantics.
408 // given by the map and it will be a valid Smi or object pointer.
411 if (original_map != map(cage_base, kAcquireLoad)) return {};
458 FieldIndex index = FieldIndex::ForDescriptor(map(), descriptor);
498 return map().GetInObjectPropertyOffset(index);
515 void JSObject::InitializeBody(Map map, int start_offset,
518 int size = map.instance_size();
522 if (MayHaveEmbedderFields(map)) {
523 int embedder_field_start = GetEmbedderFieldsStartOffset(map);
524 int embedder_field_count = GetEmbedderFieldCount(map);
541 DCHECK_EQ(0, GetEmbedderFieldCount(map));
547 size - (map.UnusedPropertyFields() * kTaggedSize);
555 // fill the remainder with one word filler objects (ie just a map word)
623 ElementsKind kind = map(cage_base).elements_kind();
629 // pointer may point to a one pointer filler map.
631 Map map = fixed_array.map(cage_base);
633 DCHECK(map == GetReadOnlyRoots(cage_base).fixed_array_map() ||
634 map == GetReadOnlyRoots(cage_base).fixed_cow_array_map());
730 return map(cage_base).has_typed_array_or_rab_gsab_typed_array_elements();
735 return map(cage_base).elements_kind() == TYPE##_ELEMENTS; \
743 return map(cage_base).has_named_interceptor();
747 return map(cage_base).has_indexed_interceptor();
765 if (map(isolate).is_dictionary_map()) {
783 cage_base)) == map(cage_base).is_dictionary_map()));
784 return !map(cage_base).is_dictionary_map();