Index: src/type-info.cc |
diff --git a/src/type-info.cc b/src/type-info.cc |
index f863af0cd51797225379169201a0dcf17f2ce04e..0ba6dfa852e25118518e3c04273a41d7c02b563e 100644 |
--- a/src/type-info.cc |
+++ b/src/type-info.cc |
@@ -217,8 +217,8 @@ void TypeFeedbackOracle::CompareType(TypeFeedbackId id, |
Handle<Map> map; |
Map* raw_map = code->FindFirstMap(); |
if (raw_map != NULL) { |
- map = Map::CurrentMapForDeprecated(handle(raw_map)); |
- if (!map.is_null() && CanRetainOtherContext(*map, *native_context_)) { |
+ if (Map::CurrentMapForDeprecated(handle(raw_map)).ToHandle(&map) && |
+ CanRetainOtherContext(*map, *native_context_)) { |
map = Handle<Map>::null(); |
} |
} |