| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/il_printer.h" | 5 #include "vm/il_printer.h" |
| 6 | 6 |
| 7 #include "vm/intermediate_language.h" | 7 #include "vm/intermediate_language.h" |
| 8 #include "vm/os.h" | 8 #include "vm/os.h" |
| 9 #include "vm/parser.h" | 9 #include "vm/parser.h" |
| 10 | 10 |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 void RelationalOpComp::PrintOperandsTo(BufferFormatter* f) const { | 285 void RelationalOpComp::PrintOperandsTo(BufferFormatter* f) const { |
| 286 f->Print("%s, ", Token::Str(kind())); | 286 f->Print("%s, ", Token::Str(kind())); |
| 287 left()->PrintTo(f); | 287 left()->PrintTo(f); |
| 288 f->Print(", "); | 288 f->Print(", "); |
| 289 right()->PrintTo(f); | 289 right()->PrintTo(f); |
| 290 } | 290 } |
| 291 | 291 |
| 292 | 292 |
| 293 void AllocateObjectComp::PrintOperandsTo(BufferFormatter* f) const { | 293 void AllocateObjectComp::PrintOperandsTo(BufferFormatter* f) const { |
| 294 f->Print("%s", Class::Handle(constructor().owner()).ToCString()); | 294 f->Print("%s", Class::Handle(constructor().owner()).ToCString()); |
| 295 for (intptr_t i = 0; i < arguments().length(); i++) { | 295 for (intptr_t i = 0; i < ArgumentCount(); i++) { |
| 296 f->Print(", "); | 296 f->Print(", "); |
| 297 arguments()[i]->PrintTo(f); | 297 ArgumentAt(i)->value()->PrintTo(f); |
| 298 } | 298 } |
| 299 } | 299 } |
| 300 | 300 |
| 301 | 301 |
| 302 void AllocateObjectWithBoundsCheckComp::PrintOperandsTo( | 302 void AllocateObjectWithBoundsCheckComp::PrintOperandsTo( |
| 303 BufferFormatter* f) const { | 303 BufferFormatter* f) const { |
| 304 f->Print("%s", Class::Handle(constructor().owner()).ToCString()); | 304 f->Print("%s", Class::Handle(constructor().owner()).ToCString()); |
| 305 for (intptr_t i = 0; i < arguments().length(); i++) { | 305 for (intptr_t i = 0; i < InputCount(); i++) { |
| 306 f->Print(", "); | 306 f->Print(", "); |
| 307 arguments()[i]->PrintTo(f); | 307 InputAt(i)->PrintTo(f); |
| 308 } | 308 } |
| 309 } | 309 } |
| 310 | 310 |
| 311 | 311 |
| 312 void CreateArrayComp::PrintOperandsTo(BufferFormatter* f) const { | 312 void CreateArrayComp::PrintOperandsTo(BufferFormatter* f) const { |
| 313 for (int i = 0; i < ElementCount(); ++i) { | 313 for (int i = 0; i < ElementCount(); ++i) { |
| 314 if (i != 0) f->Print(", "); | 314 if (i != 0) f->Print(", "); |
| 315 ElementAt(i)->PrintTo(f); | 315 ElementAt(i)->PrintTo(f); |
| 316 } | 316 } |
| 317 if (ElementCount() > 0) f->Print(", "); | 317 if (ElementCount() > 0) f->Print(", "); |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 !locations_[i].IsInvalid()) { | 780 !locations_[i].IsInvalid()) { |
| 781 f->Print(" ["); | 781 f->Print(" ["); |
| 782 locations_[i].PrintTo(f); | 782 locations_[i].PrintTo(f); |
| 783 f->Print("]"); | 783 f->Print("]"); |
| 784 } | 784 } |
| 785 } | 785 } |
| 786 f->Print(" }"); | 786 f->Print(" }"); |
| 787 } | 787 } |
| 788 | 788 |
| 789 } // namespace dart | 789 } // namespace dart |
| OLD | NEW |