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

Unified Diff: runtime/vm/il_printer.cc

Issue 12212093: Convert some compiler passes to preserve valid def-use chains. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 bd501ace930f669541eab7a06e23cbe37f1f9559..c7e0d43c1ad7560defec945877fb5d703c5c88ac 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -306,7 +306,7 @@ void ArgumentDefinitionTestInstr::PrintOperandsTo(BufferFormatter* f) const {
void ClosureCallInstr::PrintOperandsTo(BufferFormatter* f) const {
for (intptr_t i = 0; i < ArgumentCount(); ++i) {
if (i > 0) f->Print(", ");
- ArgumentAt(i)->value()->PrintTo(f);
+ PushArgumentAt(i)->value()->PrintTo(f);
}
}
@@ -315,7 +315,7 @@ void InstanceCallInstr::PrintOperandsTo(BufferFormatter* f) const {
f->Print("%s", function_name().ToCString());
for (intptr_t i = 0; i < ArgumentCount(); ++i) {
f->Print(", ");
- ArgumentAt(i)->value()->PrintTo(f);
+ PushArgumentAt(i)->value()->PrintTo(f);
}
if (HasICData()) {
PrintICData(f, *ic_data());
@@ -327,7 +327,7 @@ void PolymorphicInstanceCallInstr::PrintOperandsTo(BufferFormatter* f) const {
f->Print("%s", instance_call()->function_name().ToCString());
for (intptr_t i = 0; i < ArgumentCount(); ++i) {
f->Print(", ");
- ArgumentAt(i)->value()->PrintTo(f);
+ PushArgumentAt(i)->value()->PrintTo(f);
}
PrintICData(f, ic_data());
}
@@ -355,7 +355,7 @@ void StaticCallInstr::PrintOperandsTo(BufferFormatter* f) const {
f->Print("%s ", String::Handle(function().name()).ToCString());
for (intptr_t i = 0; i < ArgumentCount(); ++i) {
if (i > 0) f->Print(", ");
- ArgumentAt(i)->value()->PrintTo(f);
+ PushArgumentAt(i)->value()->PrintTo(f);
}
}
@@ -427,7 +427,7 @@ void AllocateObjectInstr::PrintOperandsTo(BufferFormatter* f) const {
f->Print("%s", Class::Handle(constructor().Owner()).ToCString());
for (intptr_t i = 0; i < ArgumentCount(); i++) {
f->Print(", ");
- ArgumentAt(i)->value()->PrintTo(f);
+ PushArgumentAt(i)->value()->PrintTo(f);
}
}
@@ -445,7 +445,7 @@ void AllocateObjectWithBoundsCheckInstr::PrintOperandsTo(
void CreateArrayInstr::PrintOperandsTo(BufferFormatter* f) const {
for (int i = 0; i < ArgumentCount(); ++i) {
if (i != 0) f->Print(", ");
- ArgumentAt(i)->value()->PrintTo(f);
+ PushArgumentAt(i)->value()->PrintTo(f);
}
if (ArgumentCount() > 0) f->Print(", ");
element_type()->PrintTo(f);
@@ -456,7 +456,7 @@ void CreateClosureInstr::PrintOperandsTo(BufferFormatter* f) const {
f->Print("%s", function().ToCString());
for (intptr_t i = 0; i < ArgumentCount(); ++i) {
if (i > 0) f->Print(", ");
- ArgumentAt(i)->value()->PrintTo(f);
+ PushArgumentAt(i)->value()->PrintTo(f);
}
}

Powered by Google App Engine
This is Rietveld 408576698