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

Unified Diff: runtime/vm/il_printer.cc

Issue 184523002: Allocation sinking for contexts. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: added new test Created 6 years, 1 month 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
===================================================================
--- runtime/vm/il_printer.cc (revision 41687)
+++ runtime/vm/il_printer.cc (working copy)
@@ -505,7 +505,7 @@
void AllocateObjectInstr::PrintOperandsTo(BufferFormatter* f) const {
- f->Print("%s", cls().ToCString());
+ f->Print("%s", String::Handle(cls().PrettyName()).ToCString());
for (intptr_t i = 0; i < ArgumentCount(); i++) {
f->Print(", ");
PushArgumentAt(i)->value()->PrintTo(f);
@@ -518,7 +518,7 @@
void MaterializeObjectInstr::PrintOperandsTo(BufferFormatter* f) const {
- f->Print("%s", String::Handle(cls_.Name()).ToCString());
+ f->Print("%s", String::Handle(cls_.PrettyName()).ToCString());
for (intptr_t i = 0; i < InputCount(); i++) {
f->Print(", ");
f->Print("%s: ", slots_[i]->ToCString());
@@ -571,6 +571,10 @@
void AllocateUninitializedContextInstr::PrintOperandsTo(
BufferFormatter* f) const {
f->Print("%" Pd "", num_context_variables());
+
+ if (Identity().IsNotAliased()) {
+ f->Print(" <not-aliased>");
+ }
}

Powered by Google App Engine
This is Rietveld 408576698