Chromium Code Reviews| Index: src/compiler/graph-visualizer.cc |
| diff --git a/src/compiler/graph-visualizer.cc b/src/compiler/graph-visualizer.cc |
| index f2368931fa21ec3283c84f9260673b8e8b64464c..a63e69404d6a40b9c5f43e3ba6016f985525a59a 100644 |
| --- a/src/compiler/graph-visualizer.cc |
| +++ b/src/compiler/graph-visualizer.cc |
| @@ -558,9 +558,10 @@ void GraphC1Visualizer::PrintLiveRange(const LiveRange* range, const char* type, |
| << "\""; |
| } else { |
| index = AllocatedOperand::cast(top->GetSpillOperand())->index(); |
| - if (top->kind() == FP_REGISTERS) { |
| - os_ << " \"double_stack:" << index << "\""; |
| - } else if (top->kind() == GENERAL_REGISTERS) { |
| + if (IsFloatingPoint(top->representation())) { |
| + os_ << " \"fp_stack:" << index << "\""; |
| + } else { |
| + DCHECK(!IsFloatingPoint(top->representation())); |
|
Mircea Trofin
2016/06/18 23:27:56
When would this check fail?
bbudge
2016/06/18 23:33:22
Yes, that's kind of dumb. Removed.
|
| os_ << " \"stack:" << index << "\""; |
| } |
| } |