Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index 357a360a40e11e05ea3e649249a028ea185f98dc..066b3b45aab85507c35c8b0e7f5b952cd5dd9e5d 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -262,13 +262,14 @@ static void LookupForRead(LookupIterator* it) { |
bool IC::ShouldRecomputeHandler(Handle<Object> receiver, Handle<String> name) { |
if (!RecomputeHandlerForName(name)) return false; |
- // This is a contextual access, always just update the handler and stay |
- // monomorphic. |
- if (receiver->IsJSGlobalObject()) return true; |
DCHECK(UseVector()); |
maybe_handler_ = nexus()->FindHandlerForMap(receiver_map()); |
+ // This is a contextual access, always just update the handler and stay |
+ // monomorphic. |
+ if (receiver->IsJSGlobalObject()) return true; |
+ |
// The current map wasn't handled yet. There's no reason to stay monomorphic, |
// *unless* we're moving from a deprecated map to its replacement, or |
// to a more general elements kind. |