| 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 "src/v8.h" | 8 #include <iosfwd> |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| 11 namespace internal { | 11 namespace internal { |
| 12 | |
| 13 class OStream; | |
| 14 | |
| 15 namespace compiler { | 12 namespace compiler { |
| 16 | 13 |
| 17 class Graph; | 14 class Graph; |
| 18 | 15 |
| 19 struct AsDOT { | 16 struct AsDOT { |
| 20 explicit AsDOT(const Graph& g) : graph(g) {} | 17 explicit AsDOT(const Graph& g) : graph(g) {} |
| 21 const Graph& graph; | 18 const Graph& graph; |
| 22 }; | 19 }; |
| 23 | 20 |
| 24 OStream& operator<<(OStream& os, const AsDOT& ad); | 21 std::ostream& operator<<(std::ostream& os, const AsDOT& ad); |
| 22 |
| 25 | 23 |
| 26 struct AsJSON { | 24 struct AsJSON { |
| 27 explicit AsJSON(const Graph& g) : graph(g) {} | 25 explicit AsJSON(const Graph& g) : graph(g) {} |
| 28 const Graph& graph; | 26 const Graph& graph; |
| 29 }; | 27 }; |
| 30 | 28 |
| 31 OStream& operator<<(OStream& os, const AsJSON& ad); | 29 std::ostream& operator<<(std::ostream& os, const AsJSON& ad); |
| 32 } | 30 |
| 33 } | 31 } // namespace compiler |
| 34 } // namespace v8::internal::compiler | 32 } // namespace internal |
| 33 } // namespace v8 |
| 35 | 34 |
| 36 #endif // V8_COMPILER_GRAPH_VISUALIZER_H_ | 35 #endif // V8_COMPILER_GRAPH_VISUALIZER_H_ |
| OLD | NEW |