Index: src/compiler/register-allocator.cc |
diff --git a/src/compiler/register-allocator.cc b/src/compiler/register-allocator.cc |
index 4a222a43bef66c2c22008e2a5ddbb8d2113f6a11..1d4f454479ec197b66ff01fab5d54252c6bb4e20 100644 |
--- a/src/compiler/register-allocator.cc |
+++ b/src/compiler/register-allocator.cc |
@@ -1364,7 +1364,7 @@ void ConstraintBuilder::MeetConstraintsAfter(int instr_index) { |
// This value is produced on the stack, we never need to spill it. |
if (first_output->IsStackSlot()) { |
DCHECK(StackSlotOperand::cast(first_output)->index() < |
- data()->frame()->GetSpillSlotCount()); |
+ data()->frame()->GetTotalFrameSlotCount()); |
range->SetSpillOperand(StackSlotOperand::cast(first_output)); |
range->SetSpillStartIndex(instr_index + 1); |
assigned = true; |