Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 038db5ba63f956cd4e95f70b29931d338edb12b8..29e166ec909b60b29b279c0233058251ebe8aa19 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1029,6 +1029,7 @@ void BytecodeGraphBuilder::BuildNamedStore(LanguageMode language_mode) { |
VectorSlotPair feedback = |
CreateVectorSlotPair(bytecode_iterator().GetIndexOperand(2)); |
+ DCHECK_EQ(feedback.vector()->GetLanguageMode(feedback.slot()), language_mode); |
mvstanton
2017/02/06 08:23:51
Nice assert to add, thx!
|
const Operator* op = javascript()->StoreNamed(language_mode, name, feedback); |
Node* node = NewNode(op, object, value); |
environment()->RecordAfterState(node, Environment::kAttachFrameState); |
@@ -1052,6 +1053,7 @@ void BytecodeGraphBuilder::BuildKeyedStore(LanguageMode language_mode) { |
VectorSlotPair feedback = |
CreateVectorSlotPair(bytecode_iterator().GetIndexOperand(2)); |
+ DCHECK_EQ(feedback.vector()->GetLanguageMode(feedback.slot()), language_mode); |
const Operator* op = javascript()->StoreProperty(language_mode, feedback); |
Node* node = NewNode(op, object, key, value); |
environment()->RecordAfterState(node, Environment::kAttachFrameState); |