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

Unified Diff: runtime/vm/il_printer.cc

Issue 10693122: Rename the successor field of instruction to next. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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: runtime/vm/il_printer.cc
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index 9356bcf2a559dc1616e8eae4efd8f3c2c0bf2bf4..10b172406df5f385eab2dec5344a36cbd358a1c4 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -48,9 +48,9 @@ void FlowGraphPrinter::PrintBlocks() {
OS::Print("\n");
PrintInstruction(current);
}
- if (current->successor() != NULL) {
- ASSERT(current->successor()->IsBlockEntry());
- OS::Print(" goto %d", current->successor()->AsBlockEntry()->block_id());
+ if (current->next() != NULL) {
+ ASSERT(current->next()->IsBlockEntry());
+ OS::Print(" goto %d", current->next()->AsBlockEntry()->block_id());
}
OS::Print("\n");
}
@@ -539,10 +539,10 @@ void FlowGraphVisualizer::PrintFunction() {
Print("0 0 ");
PrintInstruction(current);
}
- if (current->successor() != NULL) {
- ASSERT(current->successor()->IsBlockEntry());
+ if (current->next() != NULL) {
+ ASSERT(current->next()->IsBlockEntry());
Print("0 0 _ Goto B%d <|@\n",
- current->successor()->AsBlockEntry()->block_id());
+ current->next()->AsBlockEntry()->block_id());
}
END("HIR");
}

Powered by Google App Engine
This is Rietveld 408576698