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

Unified Diff: src/compiler/graph-visualizer.cc

Issue 1094063002: [turbofan] split register allocator into little pieces (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/graph-visualizer.cc
diff --git a/src/compiler/graph-visualizer.cc b/src/compiler/graph-visualizer.cc
index 0d041ec560f43de13f1a25b75d9835ddafd32a1c..173db9ca8677ef50490a7d54c908d8ad5023b997 100644
--- a/src/compiler/graph-visualizer.cc
+++ b/src/compiler/graph-visualizer.cc
@@ -407,7 +407,7 @@ class GraphC1Visualizer {
void PrintSchedule(const char* phase, const Schedule* schedule,
const SourcePositionTable* positions,
const InstructionSequence* instructions);
- void PrintAllocator(const char* phase, const RegisterAllocator* allocator);
+ void PrintLiveRanges(const char* phase, const RegisterAllocationData* data);
Zone* zone() const { return zone_; }
private:
@@ -693,20 +693,20 @@ void GraphC1Visualizer::PrintSchedule(const char* phase,
}
-void GraphC1Visualizer::PrintAllocator(const char* phase,
- const RegisterAllocator* allocator) {
+void GraphC1Visualizer::PrintLiveRanges(const char* phase,
+ const RegisterAllocationData* data) {
Tag tag(this, "intervals");
PrintStringProperty("name", phase);
- for (auto range : allocator->fixed_double_live_ranges()) {
+ for (auto range : data->fixed_double_live_ranges()) {
PrintLiveRange(range, "fixed");
}
- for (auto range : allocator->fixed_live_ranges()) {
+ for (auto range : data->fixed_live_ranges()) {
PrintLiveRange(range, "fixed");
}
- for (auto range : allocator->live_ranges()) {
+ for (auto range : data->live_ranges()) {
PrintLiveRange(range, "object");
}
}
@@ -791,9 +791,10 @@ std::ostream& operator<<(std::ostream& os, const AsC1V& ac) {
}
-std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac) {
+std::ostream& operator<<(std::ostream& os,
+ const AsC1VRegisterAllocationData& ac) {
Zone tmp_zone;
- GraphC1Visualizer(os, &tmp_zone).PrintAllocator(ac.phase_, ac.allocator_);
+ GraphC1Visualizer(os, &tmp_zone).PrintLiveRanges(ac.phase_, ac.data_);
return os;
}
« no previous file with comments | « src/compiler/graph-visualizer.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698