Index: src/ic/ic-inl.h |
diff --git a/src/ic/ic-inl.h b/src/ic/ic-inl.h |
index 95fbfc47549b095be57172e0d80a8dc4d34e2d52..b6ee6b13e53a812ddc0626cecf2604cbe90848d7 100644 |
--- a/src/ic/ic-inl.h |
+++ b/src/ic/ic-inl.h |
@@ -136,6 +136,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::GetLanguageMode(code->extra_ic_state()) == |
+ LoadICState::GetLanguageMode(target()->extra_ic_state())); |
IC::set_target(code); |
} |