• Home
  • Raw
  • Download

Lines Matching refs:new_map

803         Handle<Map> new_map = Map::CopyDropDescriptors(handle(object->map()));  in DeleteNormalizedProperty()  local
804 ASSERT(new_map->is_dictionary_map()); in DeleteNormalizedProperty()
805 object->set_map(*new_map); in DeleteNormalizedProperty()
1580 Map* new_map) { in PrintInstanceMigration() argument
1585 DescriptorArray* n = new_map->instance_descriptors(); in PrintInstanceMigration()
1977 Handle<Map> new_map, in AddFastPropertyUsingMap() argument
1989 int new_unused = new_map->unused_property_fields(); in AddFastPropertyUsingMap()
1996 object->set_map(*new_map); in AddFastPropertyUsingMap()
2007 Map* new_map; in CopyAddFieldDescriptor() local
2010 if (!maybe_map->To(&new_map)) return maybe_map; in CopyAddFieldDescriptor()
2015 new_map->set_unused_property_fields(unused_property_fields); in CopyAddFieldDescriptor()
2016 return new_map; in CopyAddFieldDescriptor()
2062 Handle<Map> new_map = CopyAddFieldDescriptor( in AddFastProperty() local
2065 AddFastPropertyUsingMap(object, new_map, name, value, index, representation); in AddFastProperty()
2106 Handle<Map> new_map = CopyAddConstantDescriptor( in AddConstantProperty() local
2109 object->set_map(*new_map); in AddConstantProperty()
2401 void JSObject::MigrateToMap(Handle<JSObject> object, Handle<Map> new_map) { in MigrateToMap() argument
2404 int number_of_fields = new_map->NumberOfFields(); in MigrateToMap()
2405 int inobject = new_map->inobject_properties(); in MigrateToMap()
2406 int unused = new_map->unused_property_fields(); in MigrateToMap()
2411 *new_map, number_of_fields, inobject, unused)) { in MigrateToMap()
2412 object->set_map(*new_map); in MigrateToMap()
2421 Handle<DescriptorArray> new_descriptors(new_map->instance_descriptors()); in MigrateToMap()
2422 int descriptors = new_map->NumberOfOwnDescriptors(); in MigrateToMap()
2465 int new_instance_size = new_map->instance_size(); in MigrateToMap()
2478 object->set_map(*new_map); in MigrateToMap()
2496 Handle<Map> new_map = Map::GeneralizeRepresentation( in GeneralizeFieldRepresentation() local
2498 if (object->map() == *new_map) return; in GeneralizeFieldRepresentation()
2499 return MigrateToMap(object, new_map); in GeneralizeFieldRepresentation()
2518 Handle<Map> new_map = Copy(map); in CopyGeneralizeAllRepresentations() local
2520 DescriptorArray* descriptors = new_map->instance_descriptors(); in CopyGeneralizeAllRepresentations()
2527 new_map->NumberOfFields(), in CopyGeneralizeAllRepresentations()
2532 int unused_property_fields = new_map->unused_property_fields() - 1; in CopyGeneralizeAllRepresentations()
2536 new_map->set_unused_property_fields(unused_property_fields); in CopyGeneralizeAllRepresentations()
2541 new_map->NumberOfOwnDescriptors(), in CopyGeneralizeAllRepresentations()
2542 new_map->NumberOfOwnDescriptors(), in CopyGeneralizeAllRepresentations()
2546 return new_map; in CopyGeneralizeAllRepresentations()
2781 Handle<Map> new_map = split_map; in GeneralizeRepresentation() local
2783 new_map = Map::CopyInstallDescriptors(new_map, descriptor, new_descriptors); in GeneralizeRepresentation()
2786 new_map->set_owns_descriptors(true); in GeneralizeRepresentation()
2787 return new_map; in GeneralizeRepresentation()
3896 Handle<Map> new_map = Map::CurrentMapForDeprecatedInternal(original_map); in TryMigrateInstance() local
3897 if (new_map.is_null()) return Handle<Object>(); in TryMigrateInstance()
3898 JSObject::MigrateToMap(object, new_map); in TryMigrateInstance()
4006 Handle<Map> new_map = Map::CopyGeneralizeAllRepresentations(old_map, in ConvertAndSetLocalProperty() local
4008 JSObject::MigrateToMap(object, new_map); in ConvertAndSetLocalProperty()
4636 Handle<Map> new_map = NormalizedMapCache::Get(cache, object, mode); in NormalizeProperties() local
4637 ASSERT(new_map->is_dictionary_map()); in NormalizeProperties()
4643 int new_instance_size = new_map->instance_size(); in NormalizeProperties()
4653 object->set_map(*new_map); in NormalizeProperties()
4774 Map* new_map; in NormalizeElements() local
4777 if (!maybe->To(&new_map)) return maybe; in NormalizeElements()
4778 set_map(new_map); in NormalizeElements()
5499 Handle<Map> new_map = Map::Copy(handle(object->map())); in PreventExtensions() local
5501 new_map->set_is_extensible(false); in PreventExtensions()
5502 object->set_map(*new_map); in PreventExtensions()
5606 Handle<Map> new_map = Map::CopyReplaceDescriptors( in Freeze() local
5609 new_map->freeze(); in Freeze()
5610 new_map->set_is_extensible(false); in Freeze()
5611 new_map->set_elements_kind(DICTIONARY_ELEMENTS); in Freeze()
5612 object->set_map(*new_map); in Freeze()
5619 Handle<Map> new_map = Map::Copy(handle(object->map())); in Freeze() local
5620 new_map->freeze(); in Freeze()
5621 new_map->set_is_extensible(false); in Freeze()
5622 new_map->set_elements_kind(DICTIONARY_ELEMENTS); in Freeze()
5623 object->set_map(*new_map); in Freeze()
5657 Handle<Map> new_map; in SetObserved() local
5659 new_map = handle(result.GetTransitionTarget()); in SetObserved()
5660 ASSERT(new_map->is_observed()); in SetObserved()
5662 new_map = Map::CopyForObserved(handle(object->map())); in SetObserved()
5664 new_map = Map::Copy(handle(object->map())); in SetObserved()
5665 new_map->set_is_observed(); in SetObserved()
5667 object->set_map(*new_map); in SetObserved()
6289 Handle<Map> new_map = Map::CopyDropDescriptors(handle(object->map())); in SetPropertyCallback() local
6290 ASSERT(new_map->is_dictionary_map()); in SetPropertyCallback()
6291 object->set_map(*new_map); in SetPropertyCallback()
6492 Handle<Map> new_map = CopyInsertDescriptor(Handle<Map>(object->map()), in DefineFastAccessor() local
6494 object->set_map(*new_map); in DefineFastAccessor()
6913 Map* new_map; in CopyAsElementsKind() local
6915 if (!maybe_new_map->To(&new_map)) return maybe_new_map; in CopyAsElementsKind()
6917 MaybeObject* added_elements = set_elements_transition_map(new_map); in CopyAsElementsKind()
6920 new_map->set_elements_kind(kind); in CopyAsElementsKind()
6921 new_map->InitializeDescriptors(instance_descriptors()); in CopyAsElementsKind()
6922 new_map->SetBackPointer(this); in CopyAsElementsKind()
6924 return new_map; in CopyAsElementsKind()
6930 Map* new_map; in CopyAsElementsKind() local
6932 if (!maybe_new_map->To(&new_map)) return maybe_new_map; in CopyAsElementsKind()
6934 new_map->set_elements_kind(kind); in CopyAsElementsKind()
6937 MaybeObject* added_elements = set_elements_transition_map(new_map); in CopyAsElementsKind()
6939 new_map->SetBackPointer(this); in CopyAsElementsKind()
6942 return new_map; in CopyAsElementsKind()
6953 Handle<Map> new_map; in CopyForObserved() local
6955 new_map = Map::CopyDropDescriptors(map); in CopyForObserved()
6957 new_map = Map::Copy(map); in CopyForObserved()
6961 Map::AddTransition(map, isolate->factory()->observed_symbol(), new_map, in CopyForObserved()
6966 new_map->set_is_observed(); in CopyForObserved()
6969 new_map->InitializeDescriptors(map->instance_descriptors()); in CopyForObserved()
6973 new_map->SetBackPointer(*map); in CopyForObserved()
6974 return new_map; in CopyForObserved()
9767 Map* new_map; in CacheInitialJSArrayMaps() local
9770 new_map = current_map->elements_transition_map(); in CacheInitialJSArrayMaps()
9771 ASSERT(new_map->elements_kind() == next_kind); in CacheInitialJSArrayMaps()
9775 if (!maybe_new_map->To(&new_map)) return maybe_new_map; in CacheInitialJSArrayMaps()
9777 maps->set(next_kind, new_map); in CacheInitialJSArrayMaps()
9778 current_map = new_map; in CacheInitialJSArrayMaps()
9813 Handle<Map> new_map = Map::Copy(handle(function->initial_map())); in SetInstancePrototype() local
9814 new_map->set_prototype(*value); in SetInstancePrototype()
9822 CacheInitialJSArrayMaps(handle(native_context), new_map); in SetInstancePrototype()
9825 function->set_initial_map(*new_map); in SetInstancePrototype()
9849 Handle<Map> new_map = Map::Copy(handle(function->map())); in SetPrototype() local
9851 function->set_map(*new_map); in SetPrototype()
9852 new_map->set_constructor(*value); in SetPrototype()
9853 new_map->set_non_instance_prototype(true); in SetPrototype()
9854 Isolate* isolate = new_map->GetIsolate(); in SetPrototype()
11287 Map* new_map = map(); in SetFastElementsCapacityAndLength() local
11291 if (!maybe->To(&new_map)) return maybe; in SetFastElementsCapacityAndLength()
11294 set_map_and_elements(new_map, new_elements); in SetFastElementsCapacityAndLength()
11363 Map* new_map; in SetFastDoubleElementsCapacityAndLength() local
11366 if (!maybe_obj->To(&new_map)) return maybe_obj; in SetFastDoubleElementsCapacityAndLength()
11377 set_map_and_elements(new_map, elems); in SetFastDoubleElementsCapacityAndLength()
11908 Handle<Map> new_map = Map::GetPrototypeTransition(map, value); in SetPrototype() local
11909 if (new_map.is_null()) { in SetPrototype()
11910 new_map = Map::Copy(map); in SetPrototype()
11911 Map::PutPrototypeTransition(map, value, new_map); in SetPrototype()
11912 new_map->set_prototype(*value); in SetPrototype()
11914 ASSERT(new_map->prototype() == *value); in SetPrototype()
11915 real_receiver->set_map(*new_map); in SetPrototype()
11918 new_map->DictionaryElementsInPrototypeChainOnly()) { in SetPrototype()
12255 Handle<Map> new_map = GetElementsTransitionMap(object, kind); in SetFastElement() local
12256 object->set_map(*new_map); in SetFastElement()
12940 Map* new_map; in TransitionElementsKind() local
12941 if (!maybe_new_map->To(&new_map)) return maybe_new_map; in TransitionElementsKind()
12942 set_map(new_map); in TransitionElementsKind()
14578 Handle<Map> new_map = in PrepareElementsForSort() local
14588 object->set_map_and_elements(*new_map, *fast_elements); in PrepareElementsForSort()
15835 Map* new_map; in TransformPropertiesToFastFor() local
15837 if (!maybe_new_map->To(&new_map)) return maybe_new_map; in TransformPropertiesToFastFor()
15838 new_map->set_dictionary_map(false); in TransformPropertiesToFastFor()
15843 new_map->set_unused_property_fields(inobject_props); in TransformPropertiesToFastFor()
15844 obj->set_map(new_map); in TransformPropertiesToFastFor()
15927 new_map->InitializeDescriptors(descriptors); in TransformPropertiesToFastFor()
15928 new_map->set_unused_property_fields(unused_property_fields); in TransformPropertiesToFastFor()
15931 obj->set_map(new_map); in TransformPropertiesToFastFor()