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

Unified Diff: runtime/vm/il_printer.cc

Issue 10967007: Inlining functions with control flow. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 b536165d7acf0b4d4a14dec36217bdb3a3f499c0..ad77166df6c5445b502e1e5d7fbfcbce57d399cd 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -522,7 +522,12 @@ void GraphEntryInstr::PrintTo(BufferFormatter* f) const {
void JoinEntryInstr::PrintTo(BufferFormatter* f) const {
- f->Print("B%"Pd"[join]", block_id());
+ f->Print("B%"Pd"[join] pred(", block_id());
+ for (intptr_t i = 0; i < predecessors_.length(); ++i) {
+ if (i > 0) f->Print(", ");
+ f->Print("B%"Pd, predecessors_[i]->block_id());
+ }
+ f->Print(")");
if (phis_ != NULL) {
f->Print(" {");
for (intptr_t i = 0; i < phis_->length(); ++i) {
@@ -547,6 +552,11 @@ void PhiInstr::PrintTo(BufferFormatter* f) const {
}
f->Print(")");
PrintPropagatedType(f, *this);
+ if (is_alive()) {
+ f->Print(" alive");
+ } else {
+ f->Print(" dead");
+ }
if (range_ != NULL) {
f->Print(" ");
range_->PrintTo(f);

Powered by Google App Engine
This is Rietveld 408576698