Index: src/compiler/js-native-context-specialization.cc |
diff --git a/src/compiler/js-native-context-specialization.cc b/src/compiler/js-native-context-specialization.cc |
index 4d87638b31838d951fbf6838499644638b843d9e..8b18cbae492b80549ab879f67a7d38e1446664b4 100644 |
--- a/src/compiler/js-native-context-specialization.cc |
+++ b/src/compiler/js-native-context-specialization.cc |
@@ -1547,6 +1547,7 @@ JSNativeContextSpecialization::BuildPropertyAccess( |
DCHECK(access_info.IsGeneric()); |
DCHECK_EQ(AccessMode::kStore, access_mode); |
DCHECK(vector->IsStoreIC(slot)); |
+ DCHECK_EQ(vector->GetLanguageMode(slot), language_mode); |
Callable callable = |
CodeFactory::StoreICInOptimizedCode(isolate(), language_mode); |
const CallInterfaceDescriptor& descriptor = callable.descriptor(); |