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 #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 RegisterAllocator; |
20 class Schedule; | 20 class Schedule; |
21 class SourcePositionTable; | 21 class SourcePositionTable; |
22 | 22 |
| 23 FILE* OpenVisualizerLogFile(CompilationInfo* info, const char* phase, |
| 24 const char* suffix, const char* mode); |
23 | 25 |
24 struct AsDOT { | 26 struct AsDOT { |
25 explicit AsDOT(const Graph& g) : graph(g) {} | 27 explicit AsDOT(const Graph& g) : graph(g) {} |
26 const Graph& graph; | 28 const Graph& graph; |
27 }; | 29 }; |
28 | 30 |
29 std::ostream& operator<<(std::ostream& os, const AsDOT& ad); | 31 std::ostream& operator<<(std::ostream& os, const AsDOT& ad); |
30 | 32 |
31 | 33 |
32 struct AsJSON { | 34 struct AsJSON { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 std::ostream& operator<<(std::ostream& os, const AsDOT& ad); | 78 std::ostream& operator<<(std::ostream& os, const AsDOT& ad); |
77 std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac); | 79 std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac); |
78 std::ostream& operator<<(std::ostream& os, const AsC1V& ac); | 80 std::ostream& operator<<(std::ostream& os, const AsC1V& ac); |
79 std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac); | 81 std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac); |
80 | 82 |
81 } // namespace compiler | 83 } // namespace compiler |
82 } // namespace internal | 84 } // namespace internal |
83 } // namespace v8 | 85 } // namespace v8 |
84 | 86 |
85 #endif // V8_COMPILER_GRAPH_VISUALIZER_H_ | 87 #endif // V8_COMPILER_GRAPH_VISUALIZER_H_ |
OLD | NEW |