Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: src/ic/ic.cc

Issue 989093002: Do not set target in deoptimized code in keyed store IC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-460937.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/ic.cc
diff --git a/src/ic/ic.cc b/src/ic/ic.cc
index f896d16cabf2ca055a8e9d63bd60e538817fc830..41f2a334aabc709a3c2451efe9cfe3e274822559 100644
--- a/src/ic/ic.cc
+++ b/src/ic/ic.cc
@@ -2181,7 +2181,9 @@ MaybeHandle<Object> KeyedStoreIC::Store(Handle<Object> object,
TRACE_GENERIC_IC(isolate(), "KeyedStoreIC", "slow stub");
}
DCHECK(!stub.is_null());
- set_target(*stub);
+ if (!AddressIsDeoptimizedCode()) {
+ set_target(*stub);
+ }
TRACE_IC("StoreIC", key);
return store_handle;
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-460937.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698