Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: src/compiler/graph-visualizer.cc

Issue 694313002: [turbofan] add RegisterConfiguration to decouple arch specific register layouts from compiler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « BUILD.gn ('k') | src/compiler/instruction.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/compiler/instruction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698