Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index 3ea316fd95f0525421440e71ca533543b2c13646..e7ca5e2532c531d48de6fc9309edc283c6c72fb5 100644 |
--- a/src/compiler/instruction-selector.cc |
+++ b/src/compiler/instruction-selector.cc |
@@ -1037,7 +1037,7 @@ FrameStateDescriptor* InstructionSelector::GetFrameStateDescriptor( |
Node* state) { |
DCHECK(state->opcode() == IrOpcode::kFrameState); |
DCHECK_EQ(kFrameStateInputCount, state->InputCount()); |
- FrameStateCallInfo state_info = OpParameter<FrameStateCallInfo>(state); |
+ FrameStateInfo state_info = OpParameter<FrameStateInfo>(state); |
int parameters = static_cast<int>( |
StateValuesAccess(state->InputAt(kFrameStateParametersInput)).size()); |
@@ -1046,6 +1046,9 @@ FrameStateDescriptor* InstructionSelector::GetFrameStateDescriptor( |
int stack = static_cast<int>( |
StateValuesAccess(state->InputAt(kFrameStateStackInput)).size()); |
+ DCHECK_EQ(parameters, state_info.parameter_count()); |
+ DCHECK_EQ(locals, state_info.local_count()); |
+ |
FrameStateDescriptor* outer_state = NULL; |
Node* outer_node = state->InputAt(kFrameStateOuterStateInput); |
if (outer_node->opcode() == IrOpcode::kFrameState) { |