@@ -375,7 +375,7 @@ void IC::ConfigureVectorState(Handle<Name> name, DirectHandle<Map> map,
375375 OnFeedbackChanged (IsLoadGlobalIC () ? " LoadGlobal" : " Monomorphic" );
376376}
377377
378- void IC::ConfigureVectorState (Handle<Name> name, MapHandlesSpan maps,
378+ void IC::ConfigureVectorState (Handle<Name> name, MapHandles const & maps,
379379 MaybeObjectHandles* handlers) {
380380 DCHECK (!IsGlobalIC ());
381381 std::vector<MapAndHandler> maps_and_handlers;
@@ -741,9 +741,10 @@ bool IC::IsTransitionOfMonomorphicTarget(Tagged<Map> source_map,
741741 source_map->elements_kind (), target_elements_kind);
742742 Tagged<Map> transitioned_map;
743743 if (more_general_transition) {
744- Handle<Map> single_map[1 ] = {handle (target_map, isolate_)};
744+ MapHandles map_list;
745+ map_list.push_back (handle (target_map, isolate_));
745746 transitioned_map = source_map->FindElementsKindTransitionedMap (
746- isolate (), single_map , ConcurrencyMode::kSynchronous );
747+ isolate (), map_list , ConcurrencyMode::kSynchronous );
747748 }
748749 return transitioned_map == target_map;
749750}
@@ -1245,10 +1246,7 @@ void KeyedLoadIC::UpdateLoadElement(Handle<HeapObject> receiver,
12451246 } else if (target_receiver_maps.size () == 1 ) {
12461247 ConfigureVectorState (Handle<Name>(), target_receiver_maps[0 ], handlers[0 ]);
12471248 } else {
1248- ConfigureVectorState (Handle<Name>(),
1249- MapHandlesSpan (target_receiver_maps.begin (),
1250- target_receiver_maps.end ()),
1251- &handlers);
1249+ ConfigureVectorState (Handle<Name>(), target_receiver_maps, &handlers);
12521250 }
12531251}
12541252
@@ -1447,9 +1445,7 @@ void KeyedLoadIC::LoadElementPolymorphicHandlers(
14471445 // generate an elements kind transition for this kind of receivers.
14481446 if (receiver_map->is_stable ()) {
14491447 Tagged<Map> tmap = receiver_map->FindElementsKindTransitionedMap (
1450- isolate (),
1451- MapHandlesSpan (receiver_maps->begin (), receiver_maps->end ()),
1452- ConcurrencyMode::kSynchronous );
1448+ isolate (), *receiver_maps, ConcurrencyMode::kSynchronous );
14531449 if (!tmap.is_null ()) {
14541450 receiver_map->NotifyLeafMapLayoutChange (isolate ());
14551451 }
@@ -2478,9 +2474,7 @@ void KeyedStoreIC::StoreElementPolymorphicHandlers(
24782474 } else {
24792475 {
24802476 Tagged<Map> tmap = receiver_map->FindElementsKindTransitionedMap (
2481- isolate (),
2482- MapHandlesSpan (receiver_maps.begin (), receiver_maps.end ()),
2483- ConcurrencyMode::kSynchronous );
2477+ isolate (), receiver_maps, ConcurrencyMode::kSynchronous );
24842478 if (!tmap.is_null ()) {
24852479 if (receiver_map->is_stable ()) {
24862480 receiver_map->NotifyLeafMapLayoutChange (isolate ());
0 commit comments