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

Side by Side Diff: src/compiler/node.cc

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/node.h ('k') | src/compiler/operator.h » ('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 #include "src/compiler/node.h" 5 #include "src/compiler/node.h"
6 6
7 #include "src/compiler/generic-node-inl.h" 7 #include "src/compiler/generic-node-inl.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 24 matching lines...) Expand all
35 for (UseIter i = uses().begin(); i != uses().end(); ++i) { 35 for (UseIter i = uses().begin(); i != uses().end(); ++i) {
36 if ((*i)->opcode() == IrOpcode::kProjection && 36 if ((*i)->opcode() == IrOpcode::kProjection &&
37 OpParameter<size_t>(*i) == projection_index) { 37 OpParameter<size_t>(*i) == projection_index) {
38 return *i; 38 return *i;
39 } 39 }
40 } 40 }
41 return NULL; 41 return NULL;
42 } 42 }
43 43
44 44
45 OStream& operator<<(OStream& os, const Operator& op) { return op.PrintTo(os); } 45 std::ostream& operator<<(std::ostream& os, const Operator& op) {
46 return op.PrintTo(os);
47 }
46 48
47 49
48 OStream& operator<<(OStream& os, const Node& n) { 50 std::ostream& operator<<(std::ostream& os, const Node& n) {
49 os << n.id() << ": " << *n.op(); 51 os << n.id() << ": " << *n.op();
50 if (n.op()->InputCount() != 0) { 52 if (n.op()->InputCount() != 0) {
51 os << "("; 53 os << "(";
52 for (int i = 0; i < n.op()->InputCount(); ++i) { 54 for (int i = 0; i < n.op()->InputCount(); ++i) {
53 if (i != 0) os << ", "; 55 if (i != 0) os << ", ";
54 os << n.InputAt(i)->id(); 56 os << n.InputAt(i)->id();
55 } 57 }
56 os << ")"; 58 os << ")";
57 } 59 }
58 return os; 60 return os;
59 } 61 }
60 62
61 } // namespace compiler 63 } // namespace compiler
62 } // namespace internal 64 } // namespace internal
63 } // namespace v8 65 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/node.h ('k') | src/compiler/operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698