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

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

Issue 618643002: Replace OStream with std::ostream. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/graph-unittest.cc ('k') | src/compiler/graph-visualizer.cc » ('j') | no next file with comments »
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 "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_
OLDNEW
« no previous file with comments | « src/compiler/graph-unittest.cc ('k') | src/compiler/graph-visualizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698