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

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

Issue 1405673003: provides a mechanism for optimizing compilers to select the different Register configuration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add the TODO comments. Created 5 years, 2 months 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
« no previous file with comments | « src/assembler.cc ('k') | src/compiler/instruction.cc » ('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 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 } 667 }
668 os_ << " <|@\n"; 668 os_ << " <|@\n";
669 } 669 }
670 } 670 }
671 671
672 if (instructions != NULL) { 672 if (instructions != NULL) {
673 Tag LIR_tag(this, "LIR"); 673 Tag LIR_tag(this, "LIR");
674 for (int j = instruction_block->first_instruction_index(); 674 for (int j = instruction_block->first_instruction_index();
675 j <= instruction_block->last_instruction_index(); j++) { 675 j <= instruction_block->last_instruction_index(); j++) {
676 PrintIndent(); 676 PrintIndent();
677 PrintableInstruction printable = {RegisterConfiguration::ArchDefault(), 677 PrintableInstruction printable = {
678 instructions->InstructionAt(j)}; 678 RegisterConfiguration::ArchDefault(RegisterConfiguration::TURBOFAN),
679 instructions->InstructionAt(j)};
679 os_ << j << " " << printable << " <|@\n"; 680 os_ << j << " " << printable << " <|@\n";
680 } 681 }
681 } 682 }
682 } 683 }
683 } 684 }
684 685
685 686
686 void GraphC1Visualizer::PrintLiveRanges(const char* phase, 687 void GraphC1Visualizer::PrintLiveRanges(const char* phase,
687 const RegisterAllocationData* data) { 688 const RegisterAllocationData* data) {
688 Tag tag(this, "intervals"); 689 Tag tag(this, "intervals");
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 os << "#" << SafeId(i) << ":" << SafeMnemonic(i); 821 os << "#" << SafeId(i) << ":" << SafeMnemonic(i);
821 } 822 }
822 os << ")" << std::endl; 823 os << ")" << std::endl;
823 } 824 }
824 } 825 }
825 return os; 826 return os;
826 } 827 }
827 } // namespace compiler 828 } // namespace compiler
828 } // namespace internal 829 } // namespace internal
829 } // namespace v8 830 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/compiler/instruction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698