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

Unified Diff: src/compiler/visualizer.h

Issue 985023002: [turbofan] Add schedule to visualizer output (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove redundant cdoe Created 5 years, 9 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
Index: src/compiler/visualizer.h
diff --git a/src/compiler/graph-visualizer.h b/src/compiler/visualizer.h
similarity index 82%
rename from src/compiler/graph-visualizer.h
rename to src/compiler/visualizer.h
index 17094c23c57c37a93433565bbfba91aa193f1c97..b1ad68ad2612183b63b653a7a50f36ffc734145f 100644
--- a/src/compiler/graph-visualizer.h
+++ b/src/compiler/visualizer.h
@@ -28,31 +28,30 @@ struct AsDOT {
const Graph& graph;
};
-std::ostream& operator<<(std::ostream& os, const AsDOT& ad);
-
-
-struct AsJSON {
- AsJSON(const Graph& g, SourcePositionTable* p) : graph(g), positions(p) {}
+struct GraphAsJSON {
+ GraphAsJSON(const Graph& g, SourcePositionTable* p)
+ : graph(g), positions(p) {}
const Graph& graph;
const SourcePositionTable* positions;
};
-std::ostream& operator<<(std::ostream& os, const AsJSON& ad);
+struct ScheduleAsJSON {
+ explicit ScheduleAsJSON(const Schedule& s, SourcePositionTable* p = NULL)
+ : schedule(s), positions(p) {}
+ const Schedule& schedule;
+ const SourcePositionTable* positions;
+};
struct AsRPO {
explicit AsRPO(const Graph& g) : graph(g) {}
const Graph& graph;
};
-std::ostream& operator<<(std::ostream& os, const AsRPO& ad);
-
-
struct AsC1VCompilation {
explicit AsC1VCompilation(const CompilationInfo* info) : info_(info) {}
const CompilationInfo* info_;
};
-
struct AsC1V {
AsC1V(const char* phase, const Schedule* schedule,
const SourcePositionTable* positions = NULL,
@@ -76,6 +75,10 @@ struct AsC1VAllocator {
};
std::ostream& operator<<(std::ostream& os, const AsDOT& ad);
+std::ostream& operator<<(std::ostream& os, const GraphAsJSON& ad);
+std::ostream& operator<<(std::ostream& os, const ScheduleAsJSON& ad);
+std::ostream& operator<<(std::ostream& os, const AsRPO& ad);
+std::ostream& operator<<(std::ostream& os, const AsDOT& ad);
std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac);
std::ostream& operator<<(std::ostream& os, const AsC1V& ac);
std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac);

Powered by Google App Engine
This is Rietveld 408576698