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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 } | 673 } |
674 os_ << " <|@\n"; | 674 os_ << " <|@\n"; |
675 } | 675 } |
676 } | 676 } |
677 | 677 |
678 if (instructions != NULL) { | 678 if (instructions != NULL) { |
679 Tag LIR_tag(this, "LIR"); | 679 Tag LIR_tag(this, "LIR"); |
680 for (int j = instruction_block->first_instruction_index(); | 680 for (int j = instruction_block->first_instruction_index(); |
681 j <= instruction_block->last_instruction_index(); j++) { | 681 j <= instruction_block->last_instruction_index(); j++) { |
682 PrintIndent(); | 682 PrintIndent(); |
683 os_ << j << " " << *instructions->InstructionAt(j) << " <|@\n"; | 683 PrintableInstruction printable = {RegisterConfiguration::ArchDefault(), |
| 684 instructions->InstructionAt(j)}; |
| 685 os_ << j << " " << printable << " <|@\n"; |
684 } | 686 } |
685 } | 687 } |
686 } | 688 } |
687 } | 689 } |
688 | 690 |
689 | 691 |
690 void GraphC1Visualizer::PrintAllocator(const char* phase, | 692 void GraphC1Visualizer::PrintAllocator(const char* phase, |
691 const RegisterAllocator* allocator) { | 693 const RegisterAllocator* allocator) { |
692 Tag tag(this, "intervals"); | 694 Tag tag(this, "intervals"); |
693 PrintStringProperty("name", phase); | 695 PrintStringProperty("name", phase); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 | 781 |
780 | 782 |
781 std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac) { | 783 std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac) { |
782 Zone tmp_zone(ac.allocator_->code()->zone()->isolate()); | 784 Zone tmp_zone(ac.allocator_->code()->zone()->isolate()); |
783 GraphC1Visualizer(os, &tmp_zone).PrintAllocator(ac.phase_, ac.allocator_); | 785 GraphC1Visualizer(os, &tmp_zone).PrintAllocator(ac.phase_, ac.allocator_); |
784 return os; | 786 return os; |
785 } | 787 } |
786 } | 788 } |
787 } | 789 } |
788 } // namespace v8::internal::compiler | 790 } // namespace v8::internal::compiler |
OLD | NEW |