Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index bd7412907b68ce61f6974b19c4e1d31b64d3848d..c0916b3fb49a83f4d968198da97c667a46ef3701 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -7686,9 +7686,13 @@ HValue* HOptimizedGraphBuilder::HandlePolymorphicElementAccess( |
// Get transition target for each map (NULL == no transition). |
for (int i = 0; i < maps->length(); ++i) { |
Handle<Map> map = maps->at(i); |
- Handle<Map> transitioned_map = |
- Map::FindTransitionedMap(map, &possible_transitioned_maps); |
- transition_target.Add(transitioned_map); |
+ Map* transitioned_map = |
+ map->FindElementsKindTransitionedMap(&possible_transitioned_maps); |
+ if (transitioned_map != nullptr) { |
+ transition_target.Add(handle(transitioned_map)); |
+ } else { |
+ transition_target.Add(Handle<Map>()); |
+ } |
} |
MapHandleList untransitionable_maps(maps->length()); |