| 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 BufferFormatter* f) const { | 311 BufferFormatter* f) const { |
| 312 f->Print("%s", Class::Handle(constructor().Owner()).ToCString()); | 312 f->Print("%s", Class::Handle(constructor().Owner()).ToCString()); |
| 313 for (intptr_t i = 0; i < InputCount(); i++) { | 313 for (intptr_t i = 0; i < InputCount(); i++) { |
| 314 f->Print(", "); | 314 f->Print(", "); |
| 315 InputAt(i)->PrintTo(f); | 315 InputAt(i)->PrintTo(f); |
| 316 } | 316 } |
| 317 } | 317 } |
| 318 | 318 |
| 319 | 319 |
| 320 void CreateArrayComp::PrintOperandsTo(BufferFormatter* f) const { | 320 void CreateArrayComp::PrintOperandsTo(BufferFormatter* f) const { |
| 321 for (int i = 0; i < ElementCount(); ++i) { | 321 for (int i = 0; i < ArgumentCount(); ++i) { |
| 322 if (i != 0) f->Print(", "); | 322 if (i != 0) f->Print(", "); |
| 323 ElementAt(i)->PrintTo(f); | 323 ArgumentAt(i)->value()->PrintTo(f); |
| 324 } | 324 } |
| 325 if (ElementCount() > 0) f->Print(", "); | 325 if (ArgumentCount() > 0) f->Print(", "); |
| 326 element_type()->PrintTo(f); | 326 element_type()->PrintTo(f); |
| 327 } | 327 } |
| 328 | 328 |
| 329 | 329 |
| 330 void CreateClosureComp::PrintOperandsTo(BufferFormatter* f) const { | 330 void CreateClosureComp::PrintOperandsTo(BufferFormatter* f) const { |
| 331 f->Print("%s", function().ToCString()); | 331 f->Print("%s", function().ToCString()); |
| 332 for (intptr_t i = 0; i < ArgumentCount(); ++i) { | 332 for (intptr_t i = 0; i < ArgumentCount(); ++i) { |
| 333 if (i > 0) f->Print(", "); | 333 if (i > 0) f->Print(", "); |
| 334 ArgumentAt(i)->value()->PrintTo(f); | 334 ArgumentAt(i)->value()->PrintTo(f); |
| 335 } | 335 } |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 if ((locations_ != NULL) && !locations_[i].IsInvalid()) { | 807 if ((locations_ != NULL) && !locations_[i].IsInvalid()) { |
| 808 f->Print(" ["); | 808 f->Print(" ["); |
| 809 locations_[i].PrintTo(f); | 809 locations_[i].PrintTo(f); |
| 810 f->Print("]"); | 810 f->Print("]"); |
| 811 } | 811 } |
| 812 } | 812 } |
| 813 f->Print(" }"); | 813 f->Print(" }"); |
| 814 } | 814 } |
| 815 | 815 |
| 816 } // namespace dart | 816 } // namespace dart |
| OLD | NEW |