Lines Matching refs:old_map
2937 void JSObject::UpdatePrototypeUserRegistration(Handle<Map> old_map, in UpdatePrototypeUserRegistration() argument
2940 DCHECK(old_map->is_prototype_map()); in UpdatePrototypeUserRegistration()
2942 bool was_registered = JSObject::UnregisterPrototypeUser(old_map, isolate); in UpdatePrototypeUserRegistration()
2943 new_map->set_prototype_info(old_map->prototype_info(), kReleaseStore); in UpdatePrototypeUserRegistration()
2944 old_map->set_prototype_info(Smi::zero(), kReleaseStore); in UpdatePrototypeUserRegistration()
2948 reinterpret_cast<void*>(old_map->ptr()), in UpdatePrototypeUserRegistration()
2963 void JSObject::NotifyMapChange(Handle<Map> old_map, Handle<Map> new_map, in NotifyMapChange() argument
2965 if (!old_map->is_prototype_map()) return; in NotifyMapChange()
2967 InvalidatePrototypeChains(*old_map); in NotifyMapChange()
2974 UpdatePrototypeUserRegistration(old_map, new_map, isolate); in NotifyMapChange()
2996 Handle<Map> old_map(object->map(), isolate); in MigrateFastToFast() local
2998 if (new_map->GetBackPointer(isolate) == *old_map) { in MigrateFastToFast()
3000 if (old_map->NumberOfOwnDescriptors() == in MigrateFastToFast()
3064 if (!old_map->InstancesNeedRewriting(*new_map, number_of_fields, inobject, in MigrateFastToFast()
3080 old_map->instance_descriptors(isolate), isolate); in MigrateFastToFast()
3083 int old_nof = old_map->NumberOfOwnDescriptors(); in MigrateFastToFast()
3115 FieldIndex index = FieldIndex::ForDescriptor(isolate, *old_map, i); in MigrateFastToFast()
3169 int old_instance_size = old_map->instance_size(); in MigrateFastToFast()
3315 Handle<Map> old_map(object->map(isolate), isolate); in MigrateToMap() local
3316 NotifyMapChange(old_map, new_map, isolate); in MigrateToMap()
3318 if (old_map->is_dictionary_map()) { in MigrateToMap()
3327 if (old_map->is_prototype_map()) { in MigrateToMap()
3328 DCHECK(!old_map->is_stable()); in MigrateToMap()
3331 DCHECK(old_map->owns_descriptors()); in MigrateToMap()
3335 old_map->set_owns_descriptors(false); in MigrateToMap()
3336 DCHECK(old_map->is_abandoned_prototype_map()); in MigrateToMap()
3339 TransitionsAccessor(isolate, *old_map).NumberOfTransitions()); in MigrateToMap()
3341 DCHECK(object->map(isolate) != *old_map); in MigrateToMap()
3358 Handle<Map> old_map = Handle<Map>(object->map(), isolate); in ForceSetPrototype() local
3359 Handle<Map> new_map = Map::Copy(isolate, old_map, "ForceSetPrototype"); in ForceSetPrototype()
3731 Handle<Map> old_map(object->map(), isolate); in MigrateSlowToFast() local
3733 int inobject_props = old_map->GetInObjectProperties(); in MigrateSlowToFast()
3736 Handle<Map> new_map = Map::CopyDropDescriptors(isolate, old_map); in MigrateSlowToFast()
3743 NotifyMapChange(old_map, new_map, isolate); in MigrateSlowToFast()
3755 LOG(isolate, MapEvent("SlowToFast", old_map, new_map, reason)); in MigrateSlowToFast()
3777 IsTransitionableFastElementsKind(old_map->elements_kind()); in MigrateSlowToFast()
3866 LOG(isolate, MapEvent("SlowToFast", old_map, new_map, reason)); in MigrateSlowToFast()
4320 Handle<Map> old_map(object->map(), isolate); in PreventExtensionsWithTransition() local
4321 old_map = Map::Update(isolate, old_map); in PreventExtensionsWithTransition()
4324 TransitionsAccessor::SearchSpecial(isolate, old_map, *transition_marker); in PreventExtensionsWithTransition()
4335 } else if (TransitionsAccessor::CanHaveMoreTransitions(isolate, old_map)) { in PreventExtensionsWithTransition()
4338 isolate, old_map, attrs, transition_marker, "CopyForPreventExtensions"); in PreventExtensionsWithTransition()
4344 DCHECK(old_map->is_dictionary_map() || !old_map->is_prototype_map()); in PreventExtensionsWithTransition()
4357 IsStringWrapperElementsKind(old_map->elements_kind()) in PreventExtensionsWithTransition()