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

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

Issue 1094063002: [turbofan] split register allocator into little pieces (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | src/compiler/graph-visualizer.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 #ifndef V8_COMPILER_GRAPH_VISUALIZER_H_ 5 #ifndef V8_COMPILER_GRAPH_VISUALIZER_H_
6 #define V8_COMPILER_GRAPH_VISUALIZER_H_ 6 #define V8_COMPILER_GRAPH_VISUALIZER_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 class CompilationInfo; 13 class CompilationInfo;
14 14
15 namespace compiler { 15 namespace compiler {
16 16
17 class Graph; 17 class Graph;
18 class InstructionSequence; 18 class InstructionSequence;
19 class RegisterAllocator; 19 class RegisterAllocationData;
20 class Schedule; 20 class Schedule;
21 class SourcePositionTable; 21 class SourcePositionTable;
22 22
23 FILE* OpenVisualizerLogFile(CompilationInfo* info, const char* phase, 23 FILE* OpenVisualizerLogFile(CompilationInfo* info, const char* phase,
24 const char* suffix, const char* mode); 24 const char* suffix, const char* mode);
25 25
26 struct AsDOT { 26 struct AsDOT {
27 explicit AsDOT(const Graph& g) : graph(g) {} 27 explicit AsDOT(const Graph& g) : graph(g) {}
28 const Graph& graph; 28 const Graph& graph;
29 }; 29 };
(...skipping 30 matching lines...) Expand all
60 : schedule_(schedule), 60 : schedule_(schedule),
61 instructions_(instructions), 61 instructions_(instructions),
62 positions_(positions), 62 positions_(positions),
63 phase_(phase) {} 63 phase_(phase) {}
64 const Schedule* schedule_; 64 const Schedule* schedule_;
65 const InstructionSequence* instructions_; 65 const InstructionSequence* instructions_;
66 const SourcePositionTable* positions_; 66 const SourcePositionTable* positions_;
67 const char* phase_; 67 const char* phase_;
68 }; 68 };
69 69
70 struct AsC1VAllocator { 70 struct AsC1VRegisterAllocationData {
71 explicit AsC1VAllocator(const char* phase, 71 explicit AsC1VRegisterAllocationData(
72 const RegisterAllocator* allocator = NULL) 72 const char* phase, const RegisterAllocationData* data = nullptr)
73 : phase_(phase), allocator_(allocator) {} 73 : phase_(phase), data_(data) {}
74 const char* phase_; 74 const char* phase_;
75 const RegisterAllocator* allocator_; 75 const RegisterAllocationData* data_;
76 }; 76 };
77 77
78 std::ostream& operator<<(std::ostream& os, const AsDOT& ad); 78 std::ostream& operator<<(std::ostream& os, const AsDOT& ad);
79 std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac); 79 std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac);
80 std::ostream& operator<<(std::ostream& os, const AsC1V& ac); 80 std::ostream& operator<<(std::ostream& os, const AsC1V& ac);
81 std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac); 81 std::ostream& operator<<(std::ostream& os,
82 const AsC1VRegisterAllocationData& ac);
82 83
83 } // namespace compiler 84 } // namespace compiler
84 } // namespace internal 85 } // namespace internal
85 } // namespace v8 86 } // namespace v8
86 87
87 #endif // V8_COMPILER_GRAPH_VISUALIZER_H_ 88 #endif // V8_COMPILER_GRAPH_VISUALIZER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/graph-visualizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698