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

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

Issue 637313002: [turbofan] Output file for C1 visualizer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix Created 6 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 | Annotate | Revision Log
« 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
13 class CompilationInfo;
14
12 namespace compiler { 15 namespace compiler {
13 16
14 class Graph; 17 class Graph;
18 class InstructionSequence;
19 class RegisterAllocator;
20 class Schedule;
21 class SourcePositionTable;
22
15 23
16 struct AsDOT { 24 struct AsDOT {
17 explicit AsDOT(const Graph& g) : graph(g) {} 25 explicit AsDOT(const Graph& g) : graph(g) {}
18 const Graph& graph; 26 const Graph& graph;
19 }; 27 };
20 28
21 std::ostream& operator<<(std::ostream& os, const AsDOT& ad); 29 std::ostream& operator<<(std::ostream& os, const AsDOT& ad);
22 30
23 31
24 struct AsJSON { 32 struct AsJSON {
25 explicit AsJSON(const Graph& g) : graph(g) {} 33 explicit AsJSON(const Graph& g) : graph(g) {}
26 const Graph& graph; 34 const Graph& graph;
27 }; 35 };
28 36
29 std::ostream& operator<<(std::ostream& os, const AsJSON& ad); 37 std::ostream& operator<<(std::ostream& os, const AsJSON& ad);
30 38
39 struct AsC1VCompilation {
40 explicit AsC1VCompilation(const CompilationInfo* info) : info_(info) {}
41 const CompilationInfo* info_;
42 };
43
44
45 struct AsC1V {
46 AsC1V(const char* phase, const Schedule* schedule,
47 const SourcePositionTable* positions = NULL,
48 const InstructionSequence* instructions = NULL)
49 : schedule_(schedule),
50 instructions_(instructions),
51 positions_(positions),
52 phase_(phase) {}
53 const Schedule* schedule_;
54 const InstructionSequence* instructions_;
55 const SourcePositionTable* positions_;
56 const char* phase_;
57 };
58
59 struct AsC1VAllocator {
60 explicit AsC1VAllocator(const char* phase,
61 const RegisterAllocator* allocator = NULL)
62 : phase_(phase), allocator_(allocator) {}
63 const char* phase_;
64 const RegisterAllocator* allocator_;
65 };
66
67 std::ostream& operator<<(std::ostream& os, const AsDOT& ad);
68 std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac);
69 std::ostream& operator<<(std::ostream& os, const AsC1V& ac);
70 std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac);
71
31 } // namespace compiler 72 } // namespace compiler
32 } // namespace internal 73 } // namespace internal
33 } // namespace v8 74 } // namespace v8
34 75
35 #endif // V8_COMPILER_GRAPH_VISUALIZER_H_ 76 #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