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

Unified Diff: src/compiler/schedule.cc

Issue 1824313002: [compiler] Unify printing of schedule block ids. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/schedule.cc
diff --git a/src/compiler/schedule.cc b/src/compiler/schedule.cc
index c8853a0f8ab466bfd9be70521ea27c42ff37aecf..4ac65e5ae4055b665c9409c878f0c0a18d9310c0 100644
--- a/src/compiler/schedule.cc
+++ b/src/compiler/schedule.cc
@@ -392,7 +392,7 @@ std::ostream& operator<<(std::ostream& os, const Schedule& s) {
for (BasicBlock* block :
((s.RpoBlockCount() == 0) ? *s.all_blocks() : *s.rpo_order())) {
if (block->rpo_number() == -1) {
- os << "--- BLOCK B" << block->id().ToInt() << " (block id)";
+ os << "--- BLOCK id:" << block->id().ToInt();
} else {
os << "--- BLOCK B" << block->rpo_number();
}
@@ -403,7 +403,7 @@ std::ostream& operator<<(std::ostream& os, const Schedule& s) {
if (comma) os << ", ";
comma = true;
if (predecessor->rpo_number() == -1) {
- os << "B" << predecessor->id().ToInt();
+ os << "id:" << predecessor->id().ToInt();
} else {
os << "B" << predecessor->rpo_number();
}
@@ -432,7 +432,7 @@ std::ostream& operator<<(std::ostream& os, const Schedule& s) {
if (comma) os << ", ";
comma = true;
if (successor->rpo_number() == -1) {
- os << "B" << successor->id().ToInt();
+ os << "id:" << successor->id().ToInt();
} else {
os << "B" << successor->rpo_number();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698