Lines Matching defs:map
71 #include "src/objects/map-updater.h"
77 #include "src/utils/identity-map.h"
104 #include "src/objects/map-inl.h"
105 #include "src/objects/map.h"
212 Handle<Map> map(HeapObject::cast(*this).map(), isolate);
213 if (map->is_stable() && map->IsJSReceiverMap()) {
214 return FieldType::Class(map, isolate);
265 Handle<HeapObject>::cast(object)->map().GetConstructorFunctionIndex();
594 Handle<HeapObject>::cast(input)->map().GetConstructorFunctionIndex();
1495 Handle<Map> map) {
1497 if (!map->IsJSObjectMap()) return false;
1499 .IsTemplateFor(*map);
1629 return heap_object.map().GetPrototypeChainRootMap(isolate);
1776 if (!array.map().prototype().IsJSObject()) return true;
1777 JSObject array_proto = JSObject::cast(array.map().prototype());
1863 switch (map(cage_base).instance_type()) {
1975 if (map() == roots.no_closures_cell_map()) {
1977 } else if (map() == roots.one_closure_cell_map()) {
1979 } else if (map() == roots.many_closures_cell_map()) {
2142 os << "<Other heap object (" << map().instance_type() << ")>";
2170 Map m = map(cage_base);
2174 void HeapObject::IterateBody(Map map, int object_size, ObjectVisitor* v) {
2175 IterateBodyFast<ObjectVisitor>(map, object_size, v);
2180 static bool apply(Map map, HeapObject obj, int offset) {
2181 return BodyDescriptor::IsValidSlot(map, obj, offset);
2185 bool HeapObject::IsValidSlot(Map map, int offset) {
2187 return BodyDescriptorApply<CallIsValidSlot>(map.instance_type(), map, *this,
2191 int HeapObject::SizeFromMap(Map map) const {
2192 int instance_size = map.instance_size();
2195 InstanceType instance_type = map.instance_type();
2301 return WasmStruct::GcSafeSize(map);
2304 return WasmArray::SizeFor(map, WasmArray::cast(*this).length());
2313 return NeedsRehashing(map(cage_base).instance_type());
2318 // Use map() only when it's guaranteed that it's not a Code object.
2320 instance_type == map().instance_type());
2322 DCHECK_EQ(instance_type, map().instance_type());
2354 switch (map(cage_base).instance_type()) {
2389 switch (map(isolate).instance_type()) {
2847 // Possibly migrate to the most up-to-date map that will be able to store
2931 // Migrate to the most up-to-date map that will be able to store |value|
3616 DCHECK(proxy->map().is_dictionary_map());
3952 // us to skip the defensive copying of the target map whenever a
5314 Map map = array->map();
5316 // If map guarantees that there can't be a read-only length, we are done.
5317 if (!MayHaveReadOnlyLength(map)) return false;
5340 return map() == GetReadOnlyRoots().fixed_cow_array_map();
5516 isolate->IsInAnyContext(receiver->map().prototype(),
6480 void JSMap::Initialize(Handle<JSMap> map, Isolate* isolate) {
6482 map->set_table(*table);
6485 void JSMap::Clear(Isolate* isolate, Handle<JSMap> map) {
6486 Handle<OrderedHashMap> table(OrderedHashMap::cast(map->table()), isolate);
6488 map->set_table(*table);
6610 Map map = HeapObject::cast(value).map();
6611 return HeapObject::cast(cell.value()).map() == map && map.is_stable();
6764 DCHECK(receiver->map().is_access_check_needed());
6765 Object maybe_constructor = receiver->map().GetConstructor();
6991 // weak_cell is now removed from the unregister token map, so clear its