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

Unified Diff: test/cctest/compiler/test-graph-visualizer.cc

Issue 882973002: [turbofan] Improve JSON output (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix ASAN Created 5 years, 11 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
« src/compiler/pipeline.cc ('K') | « src/ostreams.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/test-graph-visualizer.cc
diff --git a/test/cctest/compiler/test-graph-visualizer.cc b/test/cctest/compiler/test-graph-visualizer.cc
index ce3e6b71e99f4c8abe47d1c6a5801a923ae8fc48..702e99db154e46ae063241e46f33e030e9a3cc3b 100644
--- a/test/cctest/compiler/test-graph-visualizer.cc
+++ b/test/cctest/compiler/test-graph-visualizer.cc
@@ -14,6 +14,7 @@
#include "src/compiler/operator.h"
#include "src/compiler/schedule.h"
#include "src/compiler/scheduler.h"
+#include "src/compiler/source-position.h"
#include "src/compiler/verifier.h"
using namespace v8::internal;
@@ -33,7 +34,8 @@ TEST(NodeWithNullInputReachableFromEnd) {
OFStream os(stdout);
os << AsDOT(graph);
- os << AsJSON(graph);
+ SourcePositionTable table(&graph);
+ os << AsJSON(graph, &table);
}
@@ -51,7 +53,8 @@ TEST(NodeWithNullControlReachableFromEnd) {
OFStream os(stdout);
os << AsDOT(graph);
- os << AsJSON(graph);
+ SourcePositionTable table(&graph);
+ os << AsJSON(graph, &table);
}
@@ -69,7 +72,8 @@ TEST(NodeWithNullInputReachableFromStart) {
OFStream os(stdout);
os << AsDOT(graph);
- os << AsJSON(graph);
+ SourcePositionTable table(&graph);
+ os << AsJSON(graph, &table);
}
@@ -86,5 +90,6 @@ TEST(NodeWithNullControlReachableFromStart) {
OFStream os(stdout);
os << AsDOT(graph);
- os << AsJSON(graph);
+ SourcePositionTable table(&graph);
+ os << AsJSON(graph, &table);
}
« src/compiler/pipeline.cc ('K') | « src/ostreams.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698