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

Unified Diff: runtime/vm/il_printer.cc

Issue 10855053: Align AllocateObjectComp and AllocateObjectWithBoundsCheckComp with ssa allocator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 a06589eb0c26b42c08c640de1f52feec99f87e16..ff0ec9db75dd35cf2b294a1220df1ed23dab08e2 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -292,9 +292,9 @@ void RelationalOpComp::PrintOperandsTo(BufferFormatter* f) const {
void AllocateObjectComp::PrintOperandsTo(BufferFormatter* f) const {
f->Print("%s", Class::Handle(constructor().owner()).ToCString());
- for (intptr_t i = 0; i < arguments().length(); i++) {
+ for (intptr_t i = 0; i < ArgumentCount(); i++) {
f->Print(", ");
- arguments()[i]->PrintTo(f);
+ ArgumentAt(i)->value()->PrintTo(f);
}
}
@@ -302,9 +302,9 @@ void AllocateObjectComp::PrintOperandsTo(BufferFormatter* f) const {
void AllocateObjectWithBoundsCheckComp::PrintOperandsTo(
BufferFormatter* f) const {
f->Print("%s", Class::Handle(constructor().owner()).ToCString());
- for (intptr_t i = 0; i < arguments().length(); i++) {
+ for (intptr_t i = 0; i < InputCount(); i++) {
f->Print(", ");
- arguments()[i]->PrintTo(f);
+ InputAt(i)->PrintTo(f);
}
}

Powered by Google App Engine
This is Rietveld 408576698