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

Unified Diff: vm/il_printer.cc

Issue 10693048: Revert r9253 because of dartium test failures (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 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 | « vm/flow_graph_compiler.cc ('k') | vm/intermediate_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/il_printer.cc
===================================================================
--- vm/il_printer.cc (revision 9254)
+++ vm/il_printer.cc (working copy)
@@ -44,6 +44,11 @@
PrintInstruction(current);
current = current->StraightLineSuccessor();
}
+ BlockEntryInstr* successor =
+ (current == NULL) ? NULL : current->AsBlockEntry();
+ if (successor != NULL) {
+ OS::Print(" goto %d", successor->block_id());
+ }
OS::Print("\n");
}
}
@@ -407,11 +412,6 @@
}
-void GotoInstr::PrintTo(BufferFormatter* f) const {
- f->Print(" goto %d", successor_->block_id());
-}
-
-
void ParallelMoveInstr::PrintTo(BufferFormatter* f) const {
UNIMPLEMENTED();
}
@@ -531,6 +531,11 @@
PrintInstruction(current);
current = current->StraightLineSuccessor();
}
+ BlockEntryInstr* successor =
+ (current == NULL) ? NULL : current->AsBlockEntry();
+ if (successor != NULL) {
+ Print("0 0 _ Goto B%d <|@\n", successor->block_id());
+ }
END("HIR");
}
END("block");
@@ -639,11 +644,6 @@
}
-void GotoInstr::PrintToVisualizer(BufferFormatter* f) const {
- f->Print("_ Goto (B%d)", successor_->block_id());
-}
-
-
void ParallelMoveInstr::PrintToVisualizer(BufferFormatter* f) const {
UNIMPLEMENTED();
}
« no previous file with comments | « vm/flow_graph_compiler.cc ('k') | vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698