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 <stdio.h> | 8 #include <stdio.h> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 | 10 |
| 11 #include "src/base/smart-pointers.h" |
| 12 |
11 namespace v8 { | 13 namespace v8 { |
12 namespace internal { | 14 namespace internal { |
13 | 15 |
14 class CompilationInfo; | 16 class CompilationInfo; |
15 | 17 |
16 namespace compiler { | 18 namespace compiler { |
17 | 19 |
18 class Graph; | 20 class Graph; |
19 class InstructionSequence; | 21 class InstructionSequence; |
20 class RegisterAllocationData; | 22 class RegisterAllocationData; |
21 class Schedule; | 23 class Schedule; |
22 class SourcePositionTable; | 24 class SourcePositionTable; |
23 | 25 |
24 FILE* OpenVisualizerLogFile(CompilationInfo* info, const char* phase, | 26 base::SmartArrayPointer<const char> GetVisualizerLogFileName( |
25 const char* suffix, const char* mode); | 27 CompilationInfo* info, const char* phase, const char* suffix); |
26 | 28 |
27 struct AsJSON { | 29 struct AsJSON { |
28 AsJSON(const Graph& g, SourcePositionTable* p) : graph(g), positions(p) {} | 30 AsJSON(const Graph& g, SourcePositionTable* p) : graph(g), positions(p) {} |
29 const Graph& graph; | 31 const Graph& graph; |
30 const SourcePositionTable* positions; | 32 const SourcePositionTable* positions; |
31 }; | 33 }; |
32 | 34 |
33 std::ostream& operator<<(std::ostream& os, const AsJSON& ad); | 35 std::ostream& operator<<(std::ostream& os, const AsJSON& ad); |
34 | 36 |
35 struct AsRPO { | 37 struct AsRPO { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac); | 73 std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac); |
72 std::ostream& operator<<(std::ostream& os, const AsC1V& ac); | 74 std::ostream& operator<<(std::ostream& os, const AsC1V& ac); |
73 std::ostream& operator<<(std::ostream& os, | 75 std::ostream& operator<<(std::ostream& os, |
74 const AsC1VRegisterAllocationData& ac); | 76 const AsC1VRegisterAllocationData& ac); |
75 | 77 |
76 } // namespace compiler | 78 } // namespace compiler |
77 } // namespace internal | 79 } // namespace internal |
78 } // namespace v8 | 80 } // namespace v8 |
79 | 81 |
80 #endif // V8_COMPILER_GRAPH_VISUALIZER_H_ | 82 #endif // V8_COMPILER_GRAPH_VISUALIZER_H_ |
OLD | NEW |