• Home
  • Raw
  • Download

Lines Matching refs:new_map

2598                                       Map new_map) {  in PrintInstanceMigration()  argument
2599 if (new_map.is_dictionary_map()) { in PrintInstanceMigration()
2605 DescriptorArray n = new_map.instance_descriptors(kRelaxedLoad); in PrintInstanceMigration()
2623 if (original_map.elements_kind() != new_map.elements_kind()) { in PrintInstanceMigration()
2625 new_map.elements_kind()); in PrintInstanceMigration()
2649 Handle<Map> new_map, in UpdatePrototypeUserRegistration() argument
2652 DCHECK(new_map->is_prototype_map()); in UpdatePrototypeUserRegistration()
2654 new_map->set_prototype_info(old_map->prototype_info()); in UpdatePrototypeUserRegistration()
2658 reinterpret_cast<void*>(new_map->prototype_info().ptr()), in UpdatePrototypeUserRegistration()
2660 reinterpret_cast<void*>(new_map->ptr())); in UpdatePrototypeUserRegistration()
2663 if (new_map->prototype_info().IsPrototypeInfo()) { in UpdatePrototypeUserRegistration()
2666 PrototypeInfo::cast(new_map->prototype_info()) in UpdatePrototypeUserRegistration()
2669 JSObject::LazyRegisterPrototypeUser(new_map, isolate); in UpdatePrototypeUserRegistration()
2674 void JSObject::NotifyMapChange(Handle<Map> old_map, Handle<Map> new_map, in NotifyMapChange() argument
2685 UpdatePrototypeUserRegistration(old_map, new_map, isolate); in NotifyMapChange()
2706 Handle<Map> new_map) { in MigrateFastToFast() argument
2709 if (new_map->GetBackPointer(isolate) == *old_map) { in MigrateFastToFast()
2712 new_map->NumberOfOwnDescriptors()) { in MigrateFastToFast()
2713 object->synchronized_set_map(*new_map); in MigrateFastToFast()
2718 PropertyDetails details = new_map->GetLastDescriptorDetails(isolate); in MigrateFastToFast()
2720 object->synchronized_set_map(*new_map); in MigrateFastToFast()
2728 FieldIndex::ForDescriptor(isolate, *new_map, new_map->LastAdded()); in MigrateFastToFast()
2735 if (index.is_double() && !new_map->IsUnboxedDoubleField(isolate, index)) { in MigrateFastToFast()
2739 object->synchronized_set_map(*new_map); in MigrateFastToFast()
2745 int grow_by = new_map->UnusedPropertyFields() + 1; in MigrateFastToFast()
2767 object->synchronized_set_map(*new_map); in MigrateFastToFast()
2772 int number_of_fields = new_map->NumberOfFields(); in MigrateFastToFast()
2773 int inobject = new_map->GetInObjectProperties(); in MigrateFastToFast()
2774 int unused = new_map->UnusedPropertyFields(); in MigrateFastToFast()
2778 if (!old_map->InstancesNeedRewriting(*new_map, number_of_fields, inobject, in MigrateFastToFast()
2780 object->synchronized_set_map(*new_map); in MigrateFastToFast()
2795 new_map->instance_descriptors(isolate, kRelaxedLoad), isolate); in MigrateFastToFast()
2797 int new_nof = new_map->NumberOfOwnDescriptors(); in MigrateFastToFast()
2885 FieldIndex index = FieldIndex::ForPropertyIndex(*new_map, i); in MigrateFastToFast()
2889 if (new_map->IsUnboxedDoubleField(isolate, index)) { in MigrateFastToFast()
2912 int new_instance_size = new_map->instance_size(); in MigrateFastToFast()
2924 object->synchronized_set_map(*new_map); in MigrateFastToFast()
2928 Handle<Map> new_map, in MigrateFastToSlow() argument
2935 DCHECK_IMPLIES(new_map->is_prototype_map(), in MigrateFastToSlow()
2936 Map::IsPrototypeChainInvalidated(*new_map)); in MigrateFastToSlow()
3022 int new_instance_size = new_map->instance_size(); in MigrateFastToSlow()
3033 object->synchronized_set_map(*new_map); in MigrateFastToSlow()
3043 int inobject_properties = new_map->GetInObjectProperties(); in MigrateFastToSlow()
3049 FieldIndex index = FieldIndex::ForPropertyIndex(*new_map, i); in MigrateFastToSlow()
3068 Handle<Map> new_map, in MigrateToMap() argument
3070 if (object->map(isolate) == *new_map) return; in MigrateToMap()
3072 NotifyMapChange(old_map, new_map, isolate); in MigrateToMap()
3077 CHECK(new_map->is_dictionary_map()); in MigrateToMap()
3080 object->synchronized_set_map(*new_map); in MigrateToMap()
3081 } else if (!new_map->is_dictionary_map()) { in MigrateToMap()
3082 MigrateFastToFast(isolate, object, new_map); in MigrateToMap()
3085 DCHECK(new_map->is_stable()); in MigrateToMap()
3086 DCHECK(new_map->owns_descriptors()); in MigrateToMap()
3095 DCHECK(new_map->GetBackPointer(isolate).IsUndefined(isolate)); in MigrateToMap()
3099 MigrateFastToSlow(isolate, object, new_map, expected_additional_properties); in MigrateToMap()
3115 Handle<Map> new_map = Map::Copy(isolate, old_map, "ForceSetPrototype"); in ForceSetPrototype() local
3116 Map::SetPrototype(isolate, new_map, proto); in ForceSetPrototype()
3117 JSObject::MigrateToMap(isolate, object, new_map); in ForceSetPrototype()
3223 Handle<Map> new_map; in TryMigrateInstance() local
3224 if (!Map::TryUpdate(isolate, original_map).ToHandle(&new_map)) { in TryMigrateInstance()
3227 JSObject::MigrateToMap(isolate, object, new_map); in TryMigrateInstance()
3407 Handle<Map> new_map = in NormalizeProperties() local
3410 JSObject::MigrateToMap(isolate, object, new_map, in NormalizeProperties()
3477 Handle<Map> new_map = Map::CopyDropDescriptors(isolate, old_map); in MigrateSlowToFast() local
3480 new_map->set_may_have_interesting_symbols(new_map->has_named_interceptor() || in MigrateSlowToFast()
3481 new_map->is_access_check_needed()); in MigrateSlowToFast()
3482 new_map->set_is_dictionary_map(false); in MigrateSlowToFast()
3484 NotifyMapChange(old_map, new_map, isolate); in MigrateSlowToFast()
3490 new_map->SetInObjectUnusedPropertyFields(inobject_props); in MigrateSlowToFast()
3491 object->synchronized_set_map(*new_map); in MigrateSlowToFast()
3496 LOG(isolate, MapEvent("SlowToFast", old_map, new_map, reason)); in MigrateSlowToFast()
3553 new_map->set_may_have_interesting_symbols(true); in MigrateSlowToFast()
3594 isolate, new_map, descriptors, descriptors->number_of_descriptors()); in MigrateSlowToFast()
3597 new_map->InitializeDescriptors(isolate, *descriptors, *layout_descriptor); in MigrateSlowToFast()
3599 new_map->SetInObjectUnusedPropertyFields(unused_property_fields); in MigrateSlowToFast()
3601 new_map->SetOutOfObjectUnusedPropertyFields(unused_property_fields); in MigrateSlowToFast()
3605 LOG(isolate, MapEvent("SlowToFast", old_map, new_map, reason)); in MigrateSlowToFast()
3608 object->synchronized_set_map(*new_map); in MigrateSlowToFast()
3660 Handle<Map> new_map = JSObject::GetElementsTransitionMap(object, target_kind); in NormalizeElements() local
3662 JSObject::MigrateToMap(isolate, object, new_map); in NormalizeElements()
3900 Handle<Map> new_map = in PreventExtensions() local
3903 new_map->set_is_extensible(false); in PreventExtensions()
3904 JSObject::MigrateToMap(isolate, object, new_map); in PreventExtensions()
4069 Handle<Map> new_map = Map::CopyForPreventExtensions( in PreventExtensionsWithTransition() local
4071 if (!new_map->has_any_nonextensible_elements()) { in PreventExtensionsWithTransition()
4074 JSObject::MigrateToMap(isolate, object, new_map); in PreventExtensionsWithTransition()
4083 Handle<Map> new_map = Map::Copy(isolate, handle(object->map(), isolate), in PreventExtensionsWithTransition() local
4085 new_map->set_is_extensible(false); in PreventExtensionsWithTransition()
4092 new_map->set_elements_kind(new_kind); in PreventExtensionsWithTransition()
4094 JSObject::MigrateToMap(isolate, object, new_map); in PreventExtensionsWithTransition()
4429 Handle<Map> new_map = in OptimizeAsPrototype() local
4431 JSObject::MigrateToMap(isolate, object, new_map); in OptimizeAsPrototype()
4703 Handle<Map> new_map = in SetPrototype() local
4705 DCHECK(new_map->prototype() == *value); in SetPrototype()
4706 JSObject::MigrateToMap(isolate, real_receiver, new_map); in SetPrototype()
4719 Handle<Map> new_map = in SetImmutableProto() local
4721 object->synchronized_set_map(*new_map); in SetImmutableProto()
4911 Handle<Map> new_map = GetElementsTransitionMap(object, to_kind); in TransitionElementsKind() local
4912 JSObject::MigrateToMap(isolate, object, new_map); in TransitionElementsKind()