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

Unified Diff: src/compiler/graph.cc

Issue 2447993002: [wasm] Debug-time print for compiler graph (Closed)
Patch Set: includes Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/graph.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/compiler/graph.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698