| 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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 xy()->PrintTo(f); | 615 xy()->PrintTo(f); |
| 616 f->Print(", "); | 616 f->Print(", "); |
| 617 zw()->PrintTo(f); | 617 zw()->PrintTo(f); |
| 618 } | 618 } |
| 619 | 619 |
| 620 | 620 |
| 621 void Simd32x4GetSignMaskInstr::PrintOperandsTo(BufferFormatter* f) const { | 621 void Simd32x4GetSignMaskInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 622 if (op_kind() == MethodRecognizer::kFloat32x4GetSignMask) { | 622 if (op_kind() == MethodRecognizer::kFloat32x4GetSignMask) { |
| 623 f->Print("Float32x4.getSignMask "); | 623 f->Print("Float32x4.getSignMask "); |
| 624 } else { | 624 } else { |
| 625 ASSERT(op_kind() == MethodRecognizer::kUint32x4GetSignMask); | 625 ASSERT(op_kind() == MethodRecognizer::kInt32x4GetSignMask); |
| 626 f->Print("Uint32x4.getSignMask "); | 626 f->Print("Int32x4.getSignMask "); |
| 627 } | 627 } |
| 628 value()->PrintTo(f); | 628 value()->PrintTo(f); |
| 629 } | 629 } |
| 630 | 630 |
| 631 | 631 |
| 632 void Float32x4ZeroInstr::PrintOperandsTo(BufferFormatter* f) const { | 632 void Float32x4ZeroInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 633 f->Print("ZERO "); | 633 f->Print("ZERO "); |
| 634 } | 634 } |
| 635 | 635 |
| 636 | 636 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 | 697 |
| 698 | 698 |
| 699 void Float32x4WithInstr::PrintOperandsTo(BufferFormatter* f) const { | 699 void Float32x4WithInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 700 f->Print("%s, ", MethodRecognizer::KindToCString(op_kind())); | 700 f->Print("%s, ", MethodRecognizer::KindToCString(op_kind())); |
| 701 left()->PrintTo(f); | 701 left()->PrintTo(f); |
| 702 f->Print(", "); | 702 f->Print(", "); |
| 703 replacement()->PrintTo(f); | 703 replacement()->PrintTo(f); |
| 704 } | 704 } |
| 705 | 705 |
| 706 | 706 |
| 707 void Float32x4ToUint32x4Instr::PrintOperandsTo(BufferFormatter* f) const { | 707 void Float32x4ToInt32x4Instr::PrintOperandsTo(BufferFormatter* f) const { |
| 708 f->Print("Float32x4.toUint32x4 "); | 708 f->Print("Float32x4.toInt32x4 "); |
| 709 left()->PrintTo(f); | 709 left()->PrintTo(f); |
| 710 } | 710 } |
| 711 | 711 |
| 712 | 712 |
| 713 | 713 |
| 714 | 714 |
| 715 | 715 |
| 716 void Uint32x4BoolConstructorInstr::PrintOperandsTo(BufferFormatter* f) const { | 716 void Int32x4BoolConstructorInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 717 f->Print("Uint32x4.bool("); | 717 f->Print("Int32x4.bool("); |
| 718 value0()->PrintTo(f); | 718 value0()->PrintTo(f); |
| 719 f->Print(", "); | 719 f->Print(", "); |
| 720 value1()->PrintTo(f); | 720 value1()->PrintTo(f); |
| 721 f->Print(", "); | 721 f->Print(", "); |
| 722 value2()->PrintTo(f); | 722 value2()->PrintTo(f); |
| 723 f->Print(", "); | 723 f->Print(", "); |
| 724 value3()->PrintTo(f); | 724 value3()->PrintTo(f); |
| 725 f->Print(")"); | 725 f->Print(")"); |
| 726 } | 726 } |
| 727 | 727 |
| 728 | 728 |
| 729 void Uint32x4GetFlagInstr::PrintOperandsTo(BufferFormatter* f) const { | 729 void Int32x4GetFlagInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 730 f->Print("Uint32x4.%s ", MethodRecognizer::KindToCString(op_kind())); | 730 f->Print("Int32x4.%s ", MethodRecognizer::KindToCString(op_kind())); |
| 731 value()->PrintTo(f); | 731 value()->PrintTo(f); |
| 732 } | 732 } |
| 733 | 733 |
| 734 | 734 |
| 735 void Uint32x4SetFlagInstr::PrintOperandsTo(BufferFormatter* f) const { | 735 void Int32x4SetFlagInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 736 f->Print("Uint32x4.%s ", MethodRecognizer::KindToCString(op_kind())); | 736 f->Print("Int32x4.%s ", MethodRecognizer::KindToCString(op_kind())); |
| 737 value()->PrintTo(f); | 737 value()->PrintTo(f); |
| 738 f->Print(", "); | 738 f->Print(", "); |
| 739 flagValue()->PrintTo(f); | 739 flagValue()->PrintTo(f); |
| 740 } | 740 } |
| 741 | 741 |
| 742 | 742 |
| 743 void Uint32x4SelectInstr::PrintOperandsTo(BufferFormatter* f) const { | 743 void Int32x4SelectInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 744 f->Print("Uint32x4.select "); | 744 f->Print("Int32x4.select "); |
| 745 mask()->PrintTo(f); | 745 mask()->PrintTo(f); |
| 746 f->Print(", "); | 746 f->Print(", "); |
| 747 trueValue()->PrintTo(f); | 747 trueValue()->PrintTo(f); |
| 748 f->Print(", "); | 748 f->Print(", "); |
| 749 falseValue()->PrintTo(f); | 749 falseValue()->PrintTo(f); |
| 750 } | 750 } |
| 751 | 751 |
| 752 | 752 |
| 753 void Uint32x4ToFloat32x4Instr::PrintOperandsTo(BufferFormatter* f) const { | 753 void Int32x4ToFloat32x4Instr::PrintOperandsTo(BufferFormatter* f) const { |
| 754 f->Print("Uint32x4.toFloat32x4 "); | 754 f->Print("Int32x4.toFloat32x4 "); |
| 755 left()->PrintTo(f); | 755 left()->PrintTo(f); |
| 756 } | 756 } |
| 757 | 757 |
| 758 | 758 |
| 759 void BinaryUint32x4OpInstr::PrintOperandsTo(BufferFormatter* f) const { | 759 void BinaryInt32x4OpInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 760 f->Print("%s, ", Token::Str(op_kind())); | 760 f->Print("%s, ", Token::Str(op_kind())); |
| 761 left()->PrintTo(f); | 761 left()->PrintTo(f); |
| 762 f->Print(", "); | 762 f->Print(", "); |
| 763 right()->PrintTo(f); | 763 right()->PrintTo(f); |
| 764 } | 764 } |
| 765 | 765 |
| 766 | 766 |
| 767 void BinaryMintOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 767 void BinaryMintOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 768 f->Print("%s, ", Token::Str(op_kind())); | 768 f->Print("%s, ", Token::Str(op_kind())); |
| 769 left()->PrintTo(f); | 769 left()->PrintTo(f); |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 f->Print(" ["); | 978 f->Print(" ["); |
| 979 locations_[i].PrintTo(f); | 979 locations_[i].PrintTo(f); |
| 980 f->Print("]"); | 980 f->Print("]"); |
| 981 } | 981 } |
| 982 } | 982 } |
| 983 f->Print(" }"); | 983 f->Print(" }"); |
| 984 if (outer_ != NULL) outer_->PrintTo(f); | 984 if (outer_ != NULL) outer_->PrintTo(f); |
| 985 } | 985 } |
| 986 | 986 |
| 987 } // namespace dart | 987 } // namespace dart |
| OLD | NEW |