| Index: src/ic/ic-compiler.cc
|
| diff --git a/src/ic/ic-compiler.cc b/src/ic/ic-compiler.cc
|
| index 9f1d87ac617247a7a63cde08804ba119b68f1035..d1e9416d415855bda7ade1d8d1ad3aca2c703f82 100644
|
| --- a/src/ic/ic-compiler.cc
|
| +++ b/src/ic/ic-compiler.cc
|
| @@ -217,8 +217,11 @@ void PropertyICCompiler::CompileKeyedStorePolymorphicHandlers(
|
| for (int i = 0; i < receiver_maps->length(); ++i) {
|
| Handle<Map> receiver_map(receiver_maps->at(i));
|
| Handle<Code> cached_stub;
|
| - Handle<Map> transitioned_map =
|
| - Map::FindTransitionedMap(receiver_map, receiver_maps);
|
| + Handle<Map> transitioned_map;
|
| + {
|
| + Map* tmap = receiver_map->FindElementsKindTransitionedMap(receiver_maps);
|
| + if (tmap != nullptr) transitioned_map = handle(tmap);
|
| + }
|
|
|
| // TODO(mvstanton): The code below is doing pessimistic elements
|
| // transitions. I would like to stop doing that and rely on Allocation Site
|
|
|