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

Unified Diff: runtime/vm/il_printer.cc

Issue 10821108: Ensure that we never try to split range at its end position. (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 eb91e561b1581398966db11ac4cd59a308a3a3b5..04a4d11751b65d62c0558d89299f2c12af40e244 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -380,6 +380,10 @@ void JoinEntryInstr::PrintTo(BufferFormatter* f) const {
(*phis_)[i]->PrintTo(f);
}
}
+ if (HasParallelMove()) {
+ f->Print("\n");
+ parallel_move()->PrintTo(f);
+ }
}
@@ -407,6 +411,10 @@ void TargetEntryInstr::PrintTo(BufferFormatter* f) const {
} else {
f->Print("]");
}
+ if (HasParallelMove()) {
+ f->Print("\n");
+ parallel_move()->PrintTo(f);
+ }
}
@@ -449,7 +457,12 @@ void ReThrowInstr::PrintTo(BufferFormatter* f) const {
void GotoInstr::PrintTo(BufferFormatter* f) const {
- f->Print(" goto %d", successor()->block_id());
+ if (HasParallelMove()) {
+ parallel_move()->PrintTo(f);
+ } else {
+ f->Print(" ");
+ }
+ f->Print(" goto %d", successor()->block_id());
}

Powered by Google App Engine
This is Rietveld 408576698