| 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 | 11 |
| 11 #include "src/base/smart-pointers.h" | 12 #include "src/base/smart-pointers.h" |
| 12 | 13 |
| 13 namespace v8 { | 14 namespace v8 { |
| 14 namespace internal { | 15 namespace internal { |
| 15 | 16 |
| 16 class CompilationInfo; | 17 class CompilationInfo; |
| 17 | 18 |
| 18 namespace compiler { | 19 namespace compiler { |
| 19 | 20 |
| 20 class Graph; | 21 class Graph; |
| 21 class InstructionSequence; | 22 class InstructionSequence; |
| 22 class RegisterAllocationData; | 23 class RegisterAllocationData; |
| 23 class Schedule; | 24 class Schedule; |
| 24 class SourcePositionTable; | 25 class SourcePositionTable; |
| 25 | 26 |
| 26 base::SmartArrayPointer<const char> GetVisualizerLogFileName( | 27 std::unique_ptr<char[]> GetVisualizerLogFileName(CompilationInfo* info, |
| 27 CompilationInfo* info, const char* phase, const char* suffix); | 28 const char* phase, |
| 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 std::ostream& operator<<(std::ostream& os, const AsJSON& ad); |
| 36 | 38 |
| 37 struct AsRPO { | 39 struct AsRPO { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac); | 75 std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac); |
| 74 std::ostream& operator<<(std::ostream& os, const AsC1V& ac); | 76 std::ostream& operator<<(std::ostream& os, const AsC1V& ac); |
| 75 std::ostream& operator<<(std::ostream& os, | 77 std::ostream& operator<<(std::ostream& os, |
| 76 const AsC1VRegisterAllocationData& ac); | 78 const AsC1VRegisterAllocationData& ac); |
| 77 | 79 |
| 78 } // namespace compiler | 80 } // namespace compiler |
| 79 } // namespace internal | 81 } // namespace internal |
| 80 } // namespace v8 | 82 } // namespace v8 |
| 81 | 83 |
| 82 #endif // V8_COMPILER_GRAPH_VISUALIZER_H_ | 84 #endif // V8_COMPILER_GRAPH_VISUALIZER_H_ |
| OLD | NEW |