@@ -2362,31 +2362,13 @@ void Map::StartInobjectSlackTracking() {
23622362
23632363Handle<Map> Map::TransitionToPrototype (Isolate* isolate, Handle<Map> map,
23642364 Handle<HeapObject> prototype) {
2365- Handle<Map> new_map = TransitionsAccessor::GetPrototypeTransition (
2366- isolate, map, prototype, map-> new_target_is_base () );
2365+ Handle<Map> new_map =
2366+ TransitionsAccessor::GetPrototypeTransition ( isolate, map, prototype);
23672367 if (new_map.is_null ()) {
23682368 new_map = Copy (isolate, map, " TransitionToPrototype" );
23692369 TransitionsAccessor::PutPrototypeTransition (isolate, map, prototype,
23702370 new_map);
2371- if (*prototype != map->prototype ()) {
2372- Map::SetPrototype (isolate, new_map, prototype);
2373- }
2374- }
2375- return new_map;
2376- }
2377-
2378- Handle<Map> Map::TransitionToDerivedMap (Isolate* isolate, Handle<Map> map,
2379- Handle<HeapObject> prototype) {
2380- Handle<Map> new_map = TransitionsAccessor::GetPrototypeTransition (
2381- isolate, map, prototype, /* new_target_is_base */ false );
2382- if (new_map.is_null ()) {
2383- new_map = CopyInitialMap (isolate, map);
2384- TransitionsAccessor::PutPrototypeTransition (isolate, map, prototype,
2385- new_map);
2386- if (*prototype != map->prototype ()) {
2387- Map::SetPrototype (isolate, new_map, prototype);
2388- }
2389- new_map->set_new_target_is_base (false );
2371+ Map::SetPrototype (isolate, new_map, prototype);
23902372 }
23912373 return new_map;
23922374}
0 commit comments