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

Unified Diff: runtime/vm/il_printer.cc

Issue 10805053: Add spill slot locations. (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 891b8aa117a899a32179167b1767339fb05226ad..12866f561a89b2380da41cac5839388572f339f4 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -467,7 +467,9 @@ void ParallelMoveInstr::PrintTo(BufferFormatter* f) const {
f->Print(" %s ", DebugName());
for (intptr_t i = 0; i < moves_.length(); i++) {
if (i != 0) f->Print(", ");
- f->Print("%s = %s", moves_[i]->dest().Name(), moves_[i]->src().Name());
+ moves_[i]->dest().PrintTo(f);
+ f->Print(" = ");
Kevin Millikin (Google) 2012/07/23 12:52:30 I like something that emphasizes the direction of
Vyacheslav Egorov (Google) 2012/07/23 14:06:10 Done.
+ moves_[i]->src().PrintTo(f);
}
}
@@ -726,7 +728,9 @@ void Environment::PrintTo(BufferFormatter* f) const {
if (i > 0) f->Print(", ");
values_[i]->PrintTo(f);
if ((i < locations_.length()) && !locations_[i].IsInvalid()) {
- f->Print(" [%s]", locations_[i].Name());
+ f->Print(" [");
+ locations_[i].PrintTo(f);
+ f->Print("]");
}
}
f->Print(" }");

Powered by Google App Engine
This is Rietveld 408576698