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 426233002: Land the Fan (disabled) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback, rebase and "git cl format" Created 6 years, 4 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/node-aux-data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "src/compiler/node.h"
6
7 namespace v8 {
8 namespace internal {
9 namespace compiler {
10
11 OStream& operator<<(OStream& os, const Operator& op) { return op.PrintTo(os); }
12
13
14 OStream& operator<<(OStream& os, const Node& n) {
15 os << n.id() << ": " << *n.op();
16 if (n.op()->InputCount() != 0) {
17 os << "(";
18 for (int i = 0; i < n.op()->InputCount(); ++i) {
19 if (i != 0) os << ", ";
20 os << n.InputAt(i)->id();
21 }
22 os << ")";
23 }
24 return os;
25 }
26 }
27 }
28 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/node.h ('k') | src/compiler/node-aux-data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698