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

Unified Diff: src/ic/ic-inl.h

Issue 1168093002: [strong] Implement strong mode restrictions on property access (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix arm64 port Created 5 years, 6 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
Index: src/ic/ic-inl.h
diff --git a/src/ic/ic-inl.h b/src/ic/ic-inl.h
index 55572f75277ea20f28537596cda393ed6a183709..7758fa39039dd8de18fd8397ab1d8c36fcb45989 100644
--- a/src/ic/ic-inl.h
+++ b/src/ic/ic-inl.h
@@ -135,6 +135,9 @@ void LoadIC::set_target(Code* code) {
// The contextual mode must be preserved across IC patching.
DCHECK(LoadICState::GetContextualMode(code->extra_ic_state()) ==
LoadICState::GetContextualMode(target()->extra_ic_state()));
+ // Strongness must be preserved across IC patching.
+ DCHECK(LoadICState::GetStrength(code->extra_ic_state()) ==
+ LoadICState::GetStrength(target()->extra_ic_state()));
IC::set_target(code);
}
« no previous file with comments | « src/ic/ic-compiler.cc ('k') | src/ic/ic-state.h » ('j') | test/mjsunit/strong/load-element.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698