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

Unified Diff: runtime/vm/il_printer.cc

Issue 10399026: Add a global graph entry. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 05da5b61070c24ff7df25b69917754d480ed0f63..f40e8504e70b9fc08078fea79b087dfbb28b8cef 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -327,6 +327,11 @@ void FlowGraphPrinter::VisitStoreContext(StoreContextComp* comp) {
}
+void FlowGraphPrinter::VisitGraphEntry(GraphEntryInstr* instr) {
+ OS::Print("%2d: [graph]", reverse_index(instr->postorder_number()));
+}
+
+
void FlowGraphPrinter::VisitJoinEntry(JoinEntryInstr* instr) {
OS::Print("%2d: [join]", reverse_index(instr->postorder_number()));
}
@@ -361,14 +366,13 @@ void FlowGraphPrinter::VisitReturn(ReturnInstr* instr) {
void FlowGraphPrinter::VisitThrow(ThrowInstr* instr) {
- OS::Print("Throw(");
+ OS::Print(" throw ");
instr->exception()->Accept(this);
- OS::Print(")");
}
void FlowGraphPrinter::VisitReThrow(ReThrowInstr* instr) {
- OS::Print("ReThrow(");
+ OS::Print(" rethrow (");
instr->exception()->Accept(this);
OS::Print(", ");
instr->stack_trace()->Accept(this);
@@ -379,7 +383,7 @@ void FlowGraphPrinter::VisitReThrow(ReThrowInstr* instr) {
void FlowGraphPrinter::VisitBranch(BranchInstr* instr) {
OS::Print(" if ");
instr->value()->Accept(this);
- OS::Print(" goto(%d, %d)",
+ OS::Print(" goto (%d, %d)",
reverse_index(instr->true_successor()->postorder_number()),
reverse_index(instr->false_successor()->postorder_number()));
}

Powered by Google App Engine
This is Rietveld 408576698