Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 02120cf2680f458babefc903058e803ed82b3476..249743723282d7196e30a4f50228ed8925f6922e 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -2769,6 +2769,7 @@ Node* AstGraphBuilder::BuildNamedStore(Node* object, Handle<Name> name, |
Node* AstGraphBuilder::BuildGlobalLoad(Handle<Name> name, |
const VectorSlotPair& feedback, |
TypeofMode typeof_mode) { |
+ DCHECK_EQ(feedback.vector()->GetTypeofMode(feedback.slot()), typeof_mode); |
const Operator* op = javascript()->LoadGlobal(name, feedback, typeof_mode); |
Node* node = NewNode(op); |
return node; |