Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index c4143c4e3d670e22a25e9f1edb0b0b3a709852d7..169df22aa8293093add0c5275fb7343b00118c6e 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -12360,17 +12360,12 @@ void HTracer::TraceLiveRange(LiveRange* range, const char* type, |
trace_.Add(" \"%s\"", Register::AllocationIndexToString(assigned_reg)); |
} |
} else if (range->IsSpilled()) { |
- int index = -1; |
- if (range->TopLevel()->GetSpillRange()->id() != -1) { |
- index = range->TopLevel()->GetSpillRange()->id(); |
+ LOperand* op = range->TopLevel()->GetSpillOperand(); |
+ if (op->IsDoubleStackSlot()) { |
+ trace_.Add(" \"double_stack:%d\"", op->index()); |
} else { |
- index = range->TopLevel()->GetSpillOperand()->index(); |
- } |
- if (range->TopLevel()->Kind() == DOUBLE_REGISTERS) { |
- trace_.Add(" \"double_stack:%d\"", index); |
- } else { |
- DCHECK(range->TopLevel()->Kind() == GENERAL_REGISTERS); |
- trace_.Add(" \"stack:%d\"", index); |
+ DCHECK(op->IsStackSlot()); |
+ trace_.Add(" \"stack:%d\"", op->index()); |
} |
} |
int parent_index = -1; |