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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 } | 547 } |
548 | 548 |
549 | 549 |
550 void StoreVMFieldInstr::PrintOperandsTo(BufferFormatter* f) const { | 550 void StoreVMFieldInstr::PrintOperandsTo(BufferFormatter* f) const { |
551 dest()->PrintTo(f); | 551 dest()->PrintTo(f); |
552 f->Print(", %"Pd", ", offset_in_bytes()); | 552 f->Print(", %"Pd", ", offset_in_bytes()); |
553 value()->PrintTo(f); | 553 value()->PrintTo(f); |
554 } | 554 } |
555 | 555 |
556 | 556 |
| 557 void InstantiateTypeInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 558 const String& type_name = String::Handle(type().Name()); |
| 559 f->Print("%s, ", type_name.ToCString()); |
| 560 instantiator()->PrintTo(f); |
| 561 } |
| 562 |
| 563 |
557 void InstantiateTypeArgumentsInstr::PrintOperandsTo(BufferFormatter* f) const { | 564 void InstantiateTypeArgumentsInstr::PrintOperandsTo(BufferFormatter* f) const { |
558 const String& type_args = String::Handle(type_arguments().Name()); | 565 const String& type_args = String::Handle(type_arguments().Name()); |
559 f->Print("%s, ", type_args.ToCString()); | 566 f->Print("%s, ", type_args.ToCString()); |
560 instantiator()->PrintTo(f); | 567 instantiator()->PrintTo(f); |
561 } | 568 } |
562 | 569 |
563 | 570 |
564 void ExtractConstructorTypeArgumentsInstr::PrintOperandsTo( | 571 void ExtractConstructorTypeArgumentsInstr::PrintOperandsTo( |
565 BufferFormatter* f) const { | 572 BufferFormatter* f) const { |
566 const String& type_args = String::Handle(type_arguments().Name()); | 573 const String& type_args = String::Handle(type_arguments().Name()); |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 f->Print(" ["); | 954 f->Print(" ["); |
948 locations_[i].PrintTo(f); | 955 locations_[i].PrintTo(f); |
949 f->Print("]"); | 956 f->Print("]"); |
950 } | 957 } |
951 } | 958 } |
952 f->Print(" }"); | 959 f->Print(" }"); |
953 if (outer_ != NULL) outer_->PrintTo(f); | 960 if (outer_ != NULL) outer_->PrintTo(f); |
954 } | 961 } |
955 | 962 |
956 } // namespace dart | 963 } // namespace dart |
OLD | NEW |