| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/compiler/graph-visualizer.h" | 5 #include "src/compiler/graph-visualizer.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 } | 529 } |
| 530 } | 530 } |
| 531 | 531 |
| 532 void GraphC1Visualizer::PrintLiveRange(const LiveRange* range, const char* type, | 532 void GraphC1Visualizer::PrintLiveRange(const LiveRange* range, const char* type, |
| 533 int vreg) { | 533 int vreg) { |
| 534 if (range != nullptr && !range->IsEmpty()) { | 534 if (range != nullptr && !range->IsEmpty()) { |
| 535 PrintIndent(); | 535 PrintIndent(); |
| 536 os_ << vreg << ":" << range->relative_id() << " " << type; | 536 os_ << vreg << ":" << range->relative_id() << " " << type; |
| 537 if (range->HasRegisterAssigned()) { | 537 if (range->HasRegisterAssigned()) { |
| 538 AllocatedOperand op = AllocatedOperand::cast(range->GetAssignedOperand()); | 538 AllocatedOperand op = AllocatedOperand::cast(range->GetAssignedOperand()); |
| 539 if (op.IsDoubleRegister()) { | 539 if (op.IsFPRegister()) { |
| 540 DoubleRegister assigned_reg = op.GetDoubleRegister(); | 540 DoubleRegister assigned_reg = op.GetDoubleRegister(); |
| 541 os_ << " \"" << assigned_reg.ToString() << "\""; | 541 os_ << " \"" << assigned_reg.ToString() << "\""; |
| 542 } else { | 542 } else { |
| 543 DCHECK(op.IsRegister()); | 543 DCHECK(op.IsRegister()); |
| 544 Register assigned_reg = op.GetRegister(); | 544 Register assigned_reg = op.GetRegister(); |
| 545 os_ << " \"" << assigned_reg.ToString() << "\""; | 545 os_ << " \"" << assigned_reg.ToString() << "\""; |
| 546 } | 546 } |
| 547 } else if (range->spilled()) { | 547 } else if (range->spilled()) { |
| 548 const TopLevelLiveRange* top = range->TopLevel(); | 548 const TopLevelLiveRange* top = range->TopLevel(); |
| 549 int index = -1; | 549 int index = -1; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 os << "]"; | 647 os << "]"; |
| 648 } | 648 } |
| 649 os << std::endl; | 649 os << std::endl; |
| 650 } | 650 } |
| 651 } | 651 } |
| 652 return os; | 652 return os; |
| 653 } | 653 } |
| 654 } // namespace compiler | 654 } // namespace compiler |
| 655 } // namespace internal | 655 } // namespace internal |
| 656 } // namespace v8 | 656 } // namespace v8 |
| OLD | NEW |