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

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: Incorporated review comments. 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
« 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
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index 02db6e237a1ffe642908f9b0f3a1d533fa656a33..9fc644a273511d8e7d6ac141eaf8e688417d29f3 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -319,7 +319,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);
}
}
@@ -328,7 +328,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());
@@ -340,7 +340,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());
}
@@ -368,7 +368,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);
}
}
@@ -440,7 +440,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);
}
}
@@ -458,7 +458,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);
@@ -469,7 +469,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);
}
}
« 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