| 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 replacement()->PrintTo(f); | 693 replacement()->PrintTo(f); |
| 694 } | 694 } |
| 695 | 695 |
| 696 | 696 |
| 697 void Float32x4ToUint32x4Instr::PrintOperandsTo(BufferFormatter* f) const { | 697 void Float32x4ToUint32x4Instr::PrintOperandsTo(BufferFormatter* f) const { |
| 698 f->Print("Float32x4.toUint32x4 "); | 698 f->Print("Float32x4.toUint32x4 "); |
| 699 left()->PrintTo(f); | 699 left()->PrintTo(f); |
| 700 } | 700 } |
| 701 | 701 |
| 702 | 702 |
| 703 void Uint32x4BoolConstructorInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 704 f->Print("Uint32x4.bool("); |
| 705 value0()->PrintTo(f); |
| 706 f->Print(", "); |
| 707 value1()->PrintTo(f); |
| 708 f->Print(", "); |
| 709 value2()->PrintTo(f); |
| 710 f->Print(", "); |
| 711 value3()->PrintTo(f); |
| 712 f->Print(")"); |
| 713 } |
| 714 |
| 715 |
| 716 void Uint32x4GetFlagInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 717 f->Print("Uint32x4.%s ", MethodRecognizer::KindToCString(op_kind())); |
| 718 value()->PrintTo(f); |
| 719 } |
| 720 |
| 721 |
| 722 void Uint32x4SetFlagInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 723 f->Print("Uint32x4.%s ", MethodRecognizer::KindToCString(op_kind())); |
| 724 value()->PrintTo(f); |
| 725 f->Print(", "); |
| 726 flagValue()->PrintTo(f); |
| 727 } |
| 728 |
| 729 |
| 730 void Uint32x4SelectInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 731 f->Print("Uint32x4.select "); |
| 732 mask()->PrintTo(f); |
| 733 f->Print(", "); |
| 734 trueValue()->PrintTo(f); |
| 735 f->Print(", "); |
| 736 falseValue()->PrintTo(f); |
| 737 } |
| 738 |
| 739 |
| 740 void Uint32x4ToFloat32x4Instr::PrintOperandsTo(BufferFormatter* f) const { |
| 741 f->Print("Uint32x4.toFloat32x4 "); |
| 742 left()->PrintTo(f); |
| 743 } |
| 744 |
| 745 |
| 746 void BinaryUint32x4OpInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 747 f->Print("%s, ", Token::Str(op_kind())); |
| 748 left()->PrintTo(f); |
| 749 f->Print(", "); |
| 750 right()->PrintTo(f); |
| 751 } |
| 752 |
| 753 |
| 703 void BinaryMintOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 754 void BinaryMintOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 704 f->Print("%s, ", Token::Str(op_kind())); | 755 f->Print("%s, ", Token::Str(op_kind())); |
| 705 left()->PrintTo(f); | 756 left()->PrintTo(f); |
| 706 f->Print(", "); | 757 f->Print(", "); |
| 707 right()->PrintTo(f); | 758 right()->PrintTo(f); |
| 708 } | 759 } |
| 709 | 760 |
| 710 | 761 |
| 711 void ShiftMintOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 762 void ShiftMintOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 712 f->Print("%s, ", Token::Str(op_kind())); | 763 f->Print("%s, ", Token::Str(op_kind())); |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 f->Print(" ["); | 932 f->Print(" ["); |
| 882 locations_[i].PrintTo(f); | 933 locations_[i].PrintTo(f); |
| 883 f->Print("]"); | 934 f->Print("]"); |
| 884 } | 935 } |
| 885 } | 936 } |
| 886 f->Print(" }"); | 937 f->Print(" }"); |
| 887 if (outer_ != NULL) outer_->PrintTo(f); | 938 if (outer_ != NULL) outer_->PrintTo(f); |
| 888 } | 939 } |
| 889 | 940 |
| 890 } // namespace dart | 941 } // namespace dart |
| OLD | NEW |