Index: src/compiler/graph.cc |
diff --git a/src/compiler/graph.cc b/src/compiler/graph.cc |
index ff1a17ef3ea9457d79843f5406395e9538cf8a6c..373d6d7ee1bc2dc10a7b73ae87a78ea312c425a9 100644 |
--- a/src/compiler/graph.cc |
+++ b/src/compiler/graph.cc |
@@ -7,8 +7,9 @@ |
#include <algorithm> |
#include "src/base/bits.h" |
-#include "src/compiler/node.h" |
+#include "src/compiler/graph-visualizer.h" |
#include "src/compiler/node-properties.h" |
+#include "src/compiler/node.h" |
#include "src/compiler/verifier.h" |
namespace v8 { |
@@ -72,6 +73,11 @@ NodeId Graph::NextNodeId() { |
return id; |
} |
+void Graph::Print() const { |
+ OFStream os(stdout); |
+ os << AsRPO(*this); |
+} |
+ |
} // namespace compiler |
} // namespace internal |
} // namespace v8 |