| 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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 os_ << " \"stack:" << index << "\""; | 743 os_ << " \"stack:" << index << "\""; |
| 744 } | 744 } |
| 745 } | 745 } |
| 746 } | 746 } |
| 747 int parent_index = -1; | 747 int parent_index = -1; |
| 748 if (range->IsChild()) { | 748 if (range->IsChild()) { |
| 749 parent_index = range->parent()->id(); | 749 parent_index = range->parent()->id(); |
| 750 } else { | 750 } else { |
| 751 parent_index = range->id(); | 751 parent_index = range->id(); |
| 752 } | 752 } |
| 753 InstructionOperand* op = range->FirstHint(); | 753 os_ << " " << parent_index; |
| 754 int hint_index = -1; | |
| 755 if (op != NULL && op->IsUnallocated()) { | |
| 756 hint_index = UnallocatedOperand::cast(op)->virtual_register(); | |
| 757 } | |
| 758 os_ << " " << parent_index << " " << hint_index; | |
| 759 for (auto interval = range->first_interval(); interval != nullptr; | 754 for (auto interval = range->first_interval(); interval != nullptr; |
| 760 interval = interval->next()) { | 755 interval = interval->next()) { |
| 761 os_ << " [" << interval->start().value() << ", " | 756 os_ << " [" << interval->start().value() << ", " |
| 762 << interval->end().value() << "["; | 757 << interval->end().value() << "["; |
| 763 } | 758 } |
| 764 | 759 |
| 765 UsePosition* current_pos = range->first_pos(); | 760 UsePosition* current_pos = range->first_pos(); |
| 766 while (current_pos != NULL) { | 761 while (current_pos != NULL) { |
| 767 if (current_pos->RegisterIsBeneficial() || FLAG_trace_all_uses) { | 762 if (current_pos->RegisterIsBeneficial() || FLAG_trace_all_uses) { |
| 768 os_ << " " << current_pos->pos().value() << " M"; | 763 os_ << " " << current_pos->pos().value() << " M"; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 os << "#" << SafeId(i) << ":" << SafeMnemonic(i); | 824 os << "#" << SafeId(i) << ":" << SafeMnemonic(i); |
| 830 } | 825 } |
| 831 os << ")" << std::endl; | 826 os << ")" << std::endl; |
| 832 } | 827 } |
| 833 } | 828 } |
| 834 return os; | 829 return os; |
| 835 } | 830 } |
| 836 } | 831 } |
| 837 } | 832 } |
| 838 } // namespace v8::internal::compiler | 833 } // namespace v8::internal::compiler |
| OLD | NEW |