| 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 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "src/globals.h" |
| 13 |
| 12 namespace v8 { | 14 namespace v8 { |
| 13 namespace internal { | 15 namespace internal { |
| 14 | 16 |
| 15 class CompilationInfo; | 17 class CompilationInfo; |
| 16 | 18 |
| 17 namespace compiler { | 19 namespace compiler { |
| 18 | 20 |
| 19 class Graph; | 21 class Graph; |
| 20 class InstructionSequence; | 22 class InstructionSequence; |
| 21 class RegisterAllocationData; | 23 class RegisterAllocationData; |
| 22 class Schedule; | 24 class Schedule; |
| 23 class SourcePositionTable; | 25 class SourcePositionTable; |
| 24 | 26 |
| 25 std::unique_ptr<char[]> GetVisualizerLogFileName(CompilationInfo* info, | 27 std::unique_ptr<char[]> GetVisualizerLogFileName(CompilationInfo* info, |
| 26 const char* phase, | 28 const char* phase, |
| 27 const char* suffix); | 29 const char* suffix); |
| 28 | 30 |
| 29 struct AsJSON { | 31 struct AsJSON { |
| 30 AsJSON(const Graph& g, SourcePositionTable* p) : graph(g), positions(p) {} | 32 AsJSON(const Graph& g, SourcePositionTable* p) : graph(g), positions(p) {} |
| 31 const Graph& graph; | 33 const Graph& graph; |
| 32 const SourcePositionTable* positions; | 34 const SourcePositionTable* positions; |
| 33 }; | 35 }; |
| 34 | 36 |
| 35 std::ostream& operator<<(std::ostream& os, const AsJSON& ad); | 37 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, const AsJSON& ad); |
| 36 | 38 |
| 37 struct AsRPO { | 39 struct AsRPO { |
| 38 explicit AsRPO(const Graph& g) : graph(g) {} | 40 explicit AsRPO(const Graph& g) : graph(g) {} |
| 39 const Graph& graph; | 41 const Graph& graph; |
| 40 }; | 42 }; |
| 41 | 43 |
| 42 std::ostream& operator<<(std::ostream& os, const AsRPO& ad); | 44 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, const AsRPO& ad); |
| 43 | |
| 44 | 45 |
| 45 struct AsC1VCompilation { | 46 struct AsC1VCompilation { |
| 46 explicit AsC1VCompilation(const CompilationInfo* info) : info_(info) {} | 47 explicit AsC1VCompilation(const CompilationInfo* info) : info_(info) {} |
| 47 const CompilationInfo* info_; | 48 const CompilationInfo* info_; |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 | 51 |
| 51 struct AsC1V { | 52 struct AsC1V { |
| 52 AsC1V(const char* phase, const Schedule* schedule, | 53 AsC1V(const char* phase, const Schedule* schedule, |
| 53 const SourcePositionTable* positions = nullptr, | 54 const SourcePositionTable* positions = nullptr, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 73 std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac); | 74 std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac); |
| 74 std::ostream& operator<<(std::ostream& os, const AsC1V& ac); | 75 std::ostream& operator<<(std::ostream& os, const AsC1V& ac); |
| 75 std::ostream& operator<<(std::ostream& os, | 76 std::ostream& operator<<(std::ostream& os, |
| 76 const AsC1VRegisterAllocationData& ac); | 77 const AsC1VRegisterAllocationData& ac); |
| 77 | 78 |
| 78 } // namespace compiler | 79 } // namespace compiler |
| 79 } // namespace internal | 80 } // namespace internal |
| 80 } // namespace v8 | 81 } // namespace v8 |
| 81 | 82 |
| 82 #endif // V8_COMPILER_GRAPH_VISUALIZER_H_ | 83 #endif // V8_COMPILER_GRAPH_VISUALIZER_H_ |
| OLD | NEW |