Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: src/compiler/graph-visualizer.h

Issue 882973002: [turbofan] Improve JSON output (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Nits Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/graph-visualizer.cc » ('j') | src/compiler/pipeline.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 {
(...skipping 12 matching lines...) Expand all
23 23
24 struct AsDOT { 24 struct AsDOT {
25 explicit AsDOT(const Graph& g) : graph(g) {} 25 explicit AsDOT(const Graph& g) : graph(g) {}
26 const Graph& graph; 26 const Graph& graph;
27 }; 27 };
28 28
29 std::ostream& operator<<(std::ostream& os, const AsDOT& ad); 29 std::ostream& operator<<(std::ostream& os, const AsDOT& ad);
30 30
31 31
32 struct AsJSON { 32 struct AsJSON {
33 explicit AsJSON(const Graph& g) : graph(g) {} 33 explicit AsJSON(const Graph& g, SourcePositionTable* p)
Sven Panne 2015/01/28 15:00:43 Nit: Remove explicit.
danno 2015/01/28 15:30:12 Done.
34 : graph(g), positions(p) {}
34 const Graph& graph; 35 const Graph& graph;
36 const SourcePositionTable* positions;
35 }; 37 };
36 38
37 std::ostream& operator<<(std::ostream& os, const AsJSON& ad); 39 std::ostream& operator<<(std::ostream& os, const AsJSON& ad);
38 40
39 struct AsRPO { 41 struct AsRPO {
40 explicit AsRPO(const Graph& g) : graph(g) {} 42 explicit AsRPO(const Graph& g) : graph(g) {}
41 const Graph& graph; 43 const Graph& graph;
42 }; 44 };
43 45
44 std::ostream& operator<<(std::ostream& os, const AsRPO& ad); 46 std::ostream& operator<<(std::ostream& os, const AsRPO& ad);
(...skipping 30 matching lines...) Expand all
75 std::ostream& operator<<(std::ostream& os, const AsDOT& ad); 77 std::ostream& operator<<(std::ostream& os, const AsDOT& ad);
76 std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac); 78 std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac);
77 std::ostream& operator<<(std::ostream& os, const AsC1V& ac); 79 std::ostream& operator<<(std::ostream& os, const AsC1V& ac);
78 std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac); 80 std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac);
79 81
80 } // namespace compiler 82 } // namespace compiler
81 } // namespace internal 83 } // namespace internal
82 } // namespace v8 84 } // namespace v8
83 85
84 #endif // V8_COMPILER_GRAPH_VISUALIZER_H_ 86 #endif // V8_COMPILER_GRAPH_VISUALIZER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/graph-visualizer.cc » ('j') | src/compiler/pipeline.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698