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

Unified Diff: src/compiler/node.cc

Issue 1488953003: [turbofan] Print API for Node. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/node.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/node.cc
diff --git a/src/compiler/node.cc b/src/compiler/node.cc
index 022c44db2dddf257f868a776eacec01eeb9dbdec..89eae1d2bc9e4ad2235d5f8d6e423adaff1cd9cf 100644
--- a/src/compiler/node.cc
+++ b/src/compiler/node.cc
@@ -271,6 +271,12 @@ bool Node::OwnedBy(Node const* owner1, Node const* owner2) const {
}
+void Node::Print() const {
+ OFStream os(stdout);
+ os << *this << std::endl;
+}
+
+
Node::Node(NodeId id, const Operator* op, int inline_count, int inline_capacity)
: op_(op),
type_(nullptr),
« no previous file with comments | « src/compiler/node.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698