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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 const TopLevelLiveRange* top = range->TopLevel(); | 548 const TopLevelLiveRange* top = range->TopLevel(); |
549 int index = -1; | 549 int index = -1; |
550 if (top->HasSpillRange()) { | 550 if (top->HasSpillRange()) { |
551 index = kMaxInt; // This hasn't been set yet. | 551 index = kMaxInt; // This hasn't been set yet. |
552 } else if (top->GetSpillOperand()->IsConstant()) { | 552 } else if (top->GetSpillOperand()->IsConstant()) { |
553 os_ << " \"const(nostack):" | 553 os_ << " \"const(nostack):" |
554 << ConstantOperand::cast(top->GetSpillOperand())->virtual_register() | 554 << ConstantOperand::cast(top->GetSpillOperand())->virtual_register() |
555 << "\""; | 555 << "\""; |
556 } else { | 556 } else { |
557 index = AllocatedOperand::cast(top->GetSpillOperand())->index(); | 557 index = AllocatedOperand::cast(top->GetSpillOperand())->index(); |
558 if (top->kind() == DOUBLE_REGISTERS) { | 558 if (top->kind() == FP_REGISTERS) { |
559 os_ << " \"double_stack:" << index << "\""; | 559 os_ << " \"double_stack:" << index << "\""; |
560 } else if (top->kind() == GENERAL_REGISTERS) { | 560 } else if (top->kind() == GENERAL_REGISTERS) { |
561 os_ << " \"stack:" << index << "\""; | 561 os_ << " \"stack:" << index << "\""; |
562 } | 562 } |
563 } | 563 } |
564 } | 564 } |
565 | 565 |
566 os_ << " " << vreg; | 566 os_ << " " << vreg; |
567 for (const UseInterval* interval = range->first_interval(); | 567 for (const UseInterval* interval = range->first_interval(); |
568 interval != nullptr; interval = interval->next()) { | 568 interval != nullptr; interval = interval->next()) { |
(...skipping 78 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 |