@@ -374,7 +374,7 @@ void IC::ConfigureVectorState(Handle<Name> name, Handle<Map> map,
374374 OnFeedbackChanged (IsLoadGlobalIC () ? " LoadGlobal" : " Monomorphic" );
375375}
376376
377- void IC::ConfigureVectorState (Handle<Name> name, MapHandlesSpan maps,
377+ void IC::ConfigureVectorState (Handle<Name> name, MapHandles const & maps,
378378 MaybeObjectHandles* handlers) {
379379 DCHECK (!IsGlobalIC ());
380380 std::vector<MapAndHandler> maps_and_handlers;
@@ -740,9 +740,10 @@ bool IC::IsTransitionOfMonomorphicTarget(Tagged<Map> source_map,
740740 source_map->elements_kind (), target_elements_kind);
741741 Tagged<Map> transitioned_map;
742742 if (more_general_transition) {
743- Handle<Map> single_map[1 ] = {handle (target_map, isolate_)};
743+ MapHandles map_list;
744+ map_list.push_back (handle (target_map, isolate_));
744745 transitioned_map = source_map->FindElementsKindTransitionedMap (
745- isolate (), single_map , ConcurrencyMode::kSynchronous );
746+ isolate (), map_list , ConcurrencyMode::kSynchronous );
746747 }
747748 return transitioned_map == target_map;
748749}
@@ -1241,10 +1242,7 @@ void KeyedLoadIC::UpdateLoadElement(Handle<HeapObject> receiver,
12411242 if (target_receiver_maps.size () == 1 ) {
12421243 ConfigureVectorState (Handle<Name>(), target_receiver_maps[0 ], handlers[0 ]);
12431244 } else {
1244- ConfigureVectorState (Handle<Name>(),
1245- MapHandlesSpan (target_receiver_maps.begin (),
1246- target_receiver_maps.end ()),
1247- &handlers);
1245+ ConfigureVectorState (Handle<Name>(), target_receiver_maps, &handlers);
12481246 }
12491247}
12501248
@@ -1441,9 +1439,7 @@ void KeyedLoadIC::LoadElementPolymorphicHandlers(
14411439 // generate an elements kind transition for this kind of receivers.
14421440 if (receiver_map->is_stable ()) {
14431441 Tagged<Map> tmap = receiver_map->FindElementsKindTransitionedMap (
1444- isolate (),
1445- MapHandlesSpan (receiver_maps->begin (), receiver_maps->end ()),
1446- ConcurrencyMode::kSynchronous );
1442+ isolate (), *receiver_maps, ConcurrencyMode::kSynchronous );
14471443 if (!tmap.is_null ()) {
14481444 receiver_map->NotifyLeafMapLayoutChange (isolate ());
14491445 }
@@ -2470,9 +2466,7 @@ void KeyedStoreIC::StoreElementPolymorphicHandlers(
24702466 } else {
24712467 {
24722468 Tagged<Map> tmap = receiver_map->FindElementsKindTransitionedMap (
2473- isolate (),
2474- MapHandlesSpan (receiver_maps.begin (), receiver_maps.end ()),
2475- ConcurrencyMode::kSynchronous );
2469+ isolate (), receiver_maps, ConcurrencyMode::kSynchronous );
24762470 if (!tmap.is_null ()) {
24772471 if (receiver_map->is_stable ()) {
24782472 receiver_map->NotifyLeafMapLayoutChange (isolate ());
0 commit comments