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

Unified Diff: src/compiler/pipeline.cc

Issue 599453002: [TurboFan]: Add JSON output for the visualizer (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 6 years, 3 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-visualizer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/pipeline.cc
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
index 9889b6a030263faa6f63b393f5fed994319ad269..c42d8636743fce6b6643d6c3610162f9d380cb4d 100644
--- a/src/compiler/pipeline.cc
+++ b/src/compiler/pipeline.cc
@@ -95,18 +95,19 @@ void Pipeline::VerifyAndPrintGraph(Graph* graph, const char* phase) {
SmartArrayPointer<char> functionname =
info_->shared_info()->DebugName()->ToCString();
if (strlen(functionname.get()) > 0) {
- SNPrintF(filename, "turbo-%s-%s.dot", functionname.get(), phase);
+ SNPrintF(filename, "turbo-%s-%s.json", functionname.get(), phase);
} else {
- SNPrintF(filename, "turbo-%p-%s.dot", static_cast<void*>(info_), phase);
+ SNPrintF(filename, "turbo-%p-%s.json", static_cast<void*>(info_),
+ phase);
}
} else {
- SNPrintF(filename, "turbo-none-%s.dot", phase);
+ SNPrintF(filename, "turbo-none-%s.json", phase);
}
std::replace(filename.start(), filename.start() + filename.length(), ' ',
'_');
FILE* file = base::OS::FOpen(filename.start(), "w+");
OFStream of(file);
- of << AsDOT(*graph);
+ of << AsJSON(*graph);
Michael Starzinger 2014/09/25 11:02:50 This seems to disable dumping of ".dot" files, I t
fclose(file);
OFStream os(stdout);
« no previous file with comments | « src/compiler/graph-visualizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698