Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index 9ea50bba2edf1d70ea8ffe5fee890e42d7c03163..ed8653ef3e3abf38779a507d71fe14b9bef5221d 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -762,11 +762,12 @@ bool IC::IsTransitionOfMonomorphicTarget(Map* source_map, Map* target_map) { |
ElementsKind target_elements_kind = target_map->elements_kind(); |
bool more_general_transition = IsMoreGeneralElementsKindTransition( |
source_map->elements_kind(), target_elements_kind); |
- Map* transitioned_map = |
- more_general_transition |
- ? source_map->LookupElementsTransitionMap(target_elements_kind) |
- : NULL; |
- |
+ Map* transitioned_map = nullptr; |
+ if (more_general_transition) { |
+ MapHandleList map_list; |
+ map_list.Add(handle(target_map)); |
+ transitioned_map = source_map->FindElementsKindTransitionedMap(&map_list); |
+ } |
return transitioned_map == target_map; |
} |