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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 void AllocateObjectWithBoundsCheckInstr::PrintOperandsTo( | 487 void AllocateObjectWithBoundsCheckInstr::PrintOperandsTo( |
488 BufferFormatter* f) const { | 488 BufferFormatter* f) const { |
489 f->Print("%s", Class::Handle(constructor().Owner()).ToCString()); | 489 f->Print("%s", Class::Handle(constructor().Owner()).ToCString()); |
490 for (intptr_t i = 0; i < InputCount(); i++) { | 490 for (intptr_t i = 0; i < InputCount(); i++) { |
491 f->Print(", "); | 491 f->Print(", "); |
492 InputAt(i)->PrintTo(f); | 492 InputAt(i)->PrintTo(f); |
493 } | 493 } |
494 } | 494 } |
495 | 495 |
496 | 496 |
| 497 void MaterializeObjectInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 498 f->Print("%s", String::Handle(cls_.Name()).ToCString()); |
| 499 for (intptr_t i = 0; i < InputCount(); i++) { |
| 500 f->Print(", "); |
| 501 f->Print("%s: ", String::Handle(fields_[i]->name()).ToCString()); |
| 502 InputAt(i)->PrintTo(f); |
| 503 } |
| 504 } |
| 505 |
| 506 |
497 void CreateArrayInstr::PrintOperandsTo(BufferFormatter* f) const { | 507 void CreateArrayInstr::PrintOperandsTo(BufferFormatter* f) const { |
498 for (int i = 0; i < ArgumentCount(); ++i) { | 508 for (int i = 0; i < ArgumentCount(); ++i) { |
499 if (i != 0) f->Print(", "); | 509 if (i != 0) f->Print(", "); |
500 PushArgumentAt(i)->value()->PrintTo(f); | 510 PushArgumentAt(i)->value()->PrintTo(f); |
501 } | 511 } |
502 if (ArgumentCount() > 0) f->Print(", "); | 512 if (ArgumentCount() > 0) f->Print(", "); |
503 element_type()->PrintTo(f); | 513 element_type()->PrintTo(f); |
504 } | 514 } |
505 | 515 |
506 | 516 |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 f->Print(" ["); | 881 f->Print(" ["); |
872 locations_[i].PrintTo(f); | 882 locations_[i].PrintTo(f); |
873 f->Print("]"); | 883 f->Print("]"); |
874 } | 884 } |
875 } | 885 } |
876 f->Print(" }"); | 886 f->Print(" }"); |
877 if (outer_ != NULL) outer_->PrintTo(f); | 887 if (outer_ != NULL) outer_->PrintTo(f); |
878 } | 888 } |
879 | 889 |
880 } // namespace dart | 890 } // namespace dart |
OLD | NEW |