From 00247d53db6896d5463ec8792ed9431b25915938 Mon Sep 17 00:00:00 2001 From: "danno@chromium.org" Date: Thu, 14 Jun 2012 08:57:34 +0000 Subject: [PATCH] Fix Kraken regression due to optimistic monomorphic element transitions R=jkummerow@chromium.org Review URL: https://chromiumcodereview.appspot.com/10539141 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@11807 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- deps/v8/src/ic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/v8/src/ic.cc b/deps/v8/src/ic.cc index d7f0f3251c..47a72b4956 100644 --- a/deps/v8/src/ic.cc +++ b/deps/v8/src/ic.cc @@ -1602,7 +1602,7 @@ Handle KeyedIC::ComputeStub(Handle receiver, monomorphic = true; } else { GetReceiverMapsForStub(Handle(target()), &target_receiver_maps); - if (ic_state == MONOMORPHIC && is_transition_stub) { + if (ic_state == MONOMORPHIC && (is_transition_stub || stub_kind == LOAD)) { // The first time a receiver is seen that is a transitioned version of the // previous monomorphic receiver type, assume the new ElementsKind is the // monomorphic type. This benefits global arrays that only transition