Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Fix Kraken regression due to optimistic monomorphic element transitions
Browse files Browse the repository at this point in the history
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
  • Loading branch information
expatdanno authored and piscisaureus committed Jun 14, 2012
1 parent c231321 commit 00247d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/v8/src/ic.cc
Expand Up @@ -1602,7 +1602,7 @@ Handle<Code> KeyedIC::ComputeStub(Handle<JSObject> receiver,
monomorphic = true;
} else {
GetReceiverMapsForStub(Handle<Code>(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
Expand Down

0 comments on commit 00247d5

Please sign in to comment.