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

Unified Diff: runtime/vm/il_printer.cc

Issue 12600012: Add a new, separate block entry instruction for catch-blocks. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: fixed IL printer Created 7 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 | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/il_printer.cc
===================================================================
--- runtime/vm/il_printer.cc (revision 19789)
+++ runtime/vm/il_printer.cc (working copy)
@@ -649,12 +649,16 @@
void TargetEntryInstr::PrintTo(BufferFormatter* f) const {
- f->Print("B%"Pd"[target", block_id());
- if (IsCatchEntry()) {
- f->Print(" catch %"Pd"]", catch_try_index());
- } else {
- f->Print("]");
+ f->Print("B%"Pd"[target]", block_id());
+ if (HasParallelMove()) {
+ f->Print(" ");
+ parallel_move()->PrintTo(f);
}
+}
+
+
+void CatchBlockEntryInstr::PrintTo(BufferFormatter* f) const {
+ f->Print("B%"Pd"[target catch %"Pd"]", block_id(), catch_try_index());
if (HasParallelMove()) {
f->Print(" ");
parallel_move()->PrintTo(f);
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698