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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 | 597 |
598 | 598 |
599 void BinarySmiOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 599 void BinarySmiOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
600 f->Print("%s, ", Token::Str(op_kind())); | 600 f->Print("%s, ", Token::Str(op_kind())); |
601 left()->PrintTo(f); | 601 left()->PrintTo(f); |
602 f->Print(", "); | 602 f->Print(", "); |
603 right()->PrintTo(f); | 603 right()->PrintTo(f); |
604 } | 604 } |
605 | 605 |
606 | 606 |
| 607 void BinaryMintOpInstr::PrintTo(BufferFormatter* f) const { |
| 608 Definition::PrintTo(f); |
| 609 if (is_32_bit()) { |
| 610 f->Print(" 32-BIT"); |
| 611 } |
| 612 } |
| 613 |
| 614 |
| 615 void UnaryMintOpInstr::PrintTo(BufferFormatter* f) const { |
| 616 Definition::PrintTo(f); |
| 617 if (is_32_bit()) { |
| 618 f->Print(" 32-BIT"); |
| 619 } |
| 620 } |
| 621 |
| 622 |
| 623 void UnboxIntegerInstr::PrintTo(BufferFormatter* f) const { |
| 624 Definition::PrintTo(f); |
| 625 if (is_32_bit()) { |
| 626 f->Print(" 32-BIT"); |
| 627 } |
| 628 } |
| 629 |
| 630 |
| 631 void ShiftMintOpInstr::PrintTo(BufferFormatter* f) const { |
| 632 Definition::PrintTo(f); |
| 633 if (is_32_bit()) { |
| 634 f->Print(" 32-BIT"); |
| 635 } |
| 636 } |
| 637 |
607 void BinaryDoubleOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 638 void BinaryDoubleOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
608 f->Print("%s, ", Token::Str(op_kind())); | 639 f->Print("%s, ", Token::Str(op_kind())); |
609 left()->PrintTo(f); | 640 left()->PrintTo(f); |
610 f->Print(", "); | 641 f->Print(", "); |
611 right()->PrintTo(f); | 642 right()->PrintTo(f); |
612 } | 643 } |
613 | 644 |
614 | 645 |
615 void BinaryFloat32x4OpInstr::PrintOperandsTo(BufferFormatter* f) const { | 646 void BinaryFloat32x4OpInstr::PrintOperandsTo(BufferFormatter* f) const { |
616 f->Print("%s, ", Token::Str(op_kind())); | 647 f->Print("%s, ", Token::Str(op_kind())); |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 } | 1092 } |
1062 | 1093 |
1063 const char* Environment::ToCString() const { | 1094 const char* Environment::ToCString() const { |
1064 char buffer[1024]; | 1095 char buffer[1024]; |
1065 BufferFormatter bf(buffer, 1024); | 1096 BufferFormatter bf(buffer, 1024); |
1066 PrintTo(&bf); | 1097 PrintTo(&bf); |
1067 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); | 1098 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); |
1068 } | 1099 } |
1069 | 1100 |
1070 } // namespace dart | 1101 } // namespace dart |
OLD | NEW |