| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 V(ConstantE) \ | 79 V(ConstantE) \ |
| 80 V(ConstantI) \ | 80 V(ConstantI) \ |
| 81 V(ConstantS) \ | 81 V(ConstantS) \ |
| 82 V(ConstantT) \ | 82 V(ConstantT) \ |
| 83 V(ConstructDouble) \ | 83 V(ConstructDouble) \ |
| 84 V(Context) \ | 84 V(Context) \ |
| 85 V(DateField) \ | 85 V(DateField) \ |
| 86 V(DebugBreak) \ | 86 V(DebugBreak) \ |
| 87 V(DeclareGlobals) \ | 87 V(DeclareGlobals) \ |
| 88 V(Deoptimize) \ | 88 V(Deoptimize) \ |
| 89 V(DivByConstI) \ |
| 89 V(DivByPowerOf2I) \ | 90 V(DivByPowerOf2I) \ |
| 90 V(DivI) \ | 91 V(DivI) \ |
| 91 V(DoubleBits) \ | 92 V(DoubleBits) \ |
| 92 V(DoubleToI) \ | 93 V(DoubleToI) \ |
| 93 V(DoubleToSmi) \ | 94 V(DoubleToSmi) \ |
| 94 V(Drop) \ | 95 V(Drop) \ |
| 95 V(Dummy) \ | 96 V(Dummy) \ |
| 96 V(DummyUse) \ | 97 V(DummyUse) \ |
| 97 V(FlooringDivByConstI) \ | 98 V(FlooringDivByConstI) \ |
| 98 V(FlooringDivByPowerOf2I) \ | 99 V(FlooringDivByPowerOf2I) \ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 V(MapEnumLength) \ | 131 V(MapEnumLength) \ |
| 131 V(MathAbs) \ | 132 V(MathAbs) \ |
| 132 V(MathClz32) \ | 133 V(MathClz32) \ |
| 133 V(MathExp) \ | 134 V(MathExp) \ |
| 134 V(MathFloor) \ | 135 V(MathFloor) \ |
| 135 V(MathLog) \ | 136 V(MathLog) \ |
| 136 V(MathMinMax) \ | 137 V(MathMinMax) \ |
| 137 V(MathPowHalf) \ | 138 V(MathPowHalf) \ |
| 138 V(MathRound) \ | 139 V(MathRound) \ |
| 139 V(MathSqrt) \ | 140 V(MathSqrt) \ |
| 141 V(ModByConstI) \ |
| 140 V(ModByPowerOf2I) \ | 142 V(ModByPowerOf2I) \ |
| 141 V(ModI) \ | 143 V(ModI) \ |
| 142 V(MulI) \ | 144 V(MulI) \ |
| 143 V(MultiplyAddD) \ | 145 V(MultiplyAddD) \ |
| 144 V(MultiplySubD) \ | 146 V(MultiplySubD) \ |
| 145 V(NumberTagD) \ | 147 V(NumberTagD) \ |
| 146 V(NumberTagI) \ | 148 V(NumberTagI) \ |
| 147 V(NumberTagU) \ | 149 V(NumberTagU) \ |
| 148 V(NumberUntagD) \ | 150 V(NumberUntagD) \ |
| 149 V(OsrEntry) \ | 151 V(OsrEntry) \ |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 int32_t divisor() const { return divisor_; } | 633 int32_t divisor() const { return divisor_; } |
| 632 | 634 |
| 633 DECLARE_CONCRETE_INSTRUCTION(ModByPowerOf2I, "mod-by-power-of-2-i") | 635 DECLARE_CONCRETE_INSTRUCTION(ModByPowerOf2I, "mod-by-power-of-2-i") |
| 634 DECLARE_HYDROGEN_ACCESSOR(Mod) | 636 DECLARE_HYDROGEN_ACCESSOR(Mod) |
| 635 | 637 |
| 636 private: | 638 private: |
| 637 int32_t divisor_; | 639 int32_t divisor_; |
| 638 }; | 640 }; |
| 639 | 641 |
| 640 | 642 |
| 643 class LModByConstI V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 644 public: |
| 645 LModByConstI(LOperand* dividend, int32_t divisor) { |
| 646 inputs_[0] = dividend; |
| 647 divisor_ = divisor; |
| 648 } |
| 649 |
| 650 LOperand* dividend() { return inputs_[0]; } |
| 651 int32_t divisor() const { return divisor_; } |
| 652 |
| 653 DECLARE_CONCRETE_INSTRUCTION(ModByConstI, "mod-by-const-i") |
| 654 DECLARE_HYDROGEN_ACCESSOR(Mod) |
| 655 |
| 656 private: |
| 657 int32_t divisor_; |
| 658 }; |
| 659 |
| 660 |
| 641 class LModI V8_FINAL : public LTemplateInstruction<1, 2, 2> { | 661 class LModI V8_FINAL : public LTemplateInstruction<1, 2, 2> { |
| 642 public: | 662 public: |
| 643 LModI(LOperand* left, LOperand* right, LOperand* temp, LOperand* temp2) { | 663 LModI(LOperand* left, LOperand* right, LOperand* temp, LOperand* temp2) { |
| 644 inputs_[0] = left; | 664 inputs_[0] = left; |
| 645 inputs_[1] = right; | 665 inputs_[1] = right; |
| 646 temps_[0] = temp; | 666 temps_[0] = temp; |
| 647 temps_[1] = temp2; | 667 temps_[1] = temp2; |
| 648 } | 668 } |
| 649 | 669 |
| 650 LOperand* left() { return inputs_[0]; } | 670 LOperand* left() { return inputs_[0]; } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 668 int32_t divisor() const { return divisor_; } | 688 int32_t divisor() const { return divisor_; } |
| 669 | 689 |
| 670 DECLARE_CONCRETE_INSTRUCTION(DivByPowerOf2I, "div-by-power-of-2-i") | 690 DECLARE_CONCRETE_INSTRUCTION(DivByPowerOf2I, "div-by-power-of-2-i") |
| 671 DECLARE_HYDROGEN_ACCESSOR(Div) | 691 DECLARE_HYDROGEN_ACCESSOR(Div) |
| 672 | 692 |
| 673 private: | 693 private: |
| 674 int32_t divisor_; | 694 int32_t divisor_; |
| 675 }; | 695 }; |
| 676 | 696 |
| 677 | 697 |
| 698 class LDivByConstI V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 699 public: |
| 700 LDivByConstI(LOperand* dividend, int32_t divisor) { |
| 701 inputs_[0] = dividend; |
| 702 divisor_ = divisor; |
| 703 } |
| 704 |
| 705 LOperand* dividend() { return inputs_[0]; } |
| 706 int32_t divisor() const { return divisor_; } |
| 707 |
| 708 DECLARE_CONCRETE_INSTRUCTION(DivByConstI, "div-by-const-i") |
| 709 DECLARE_HYDROGEN_ACCESSOR(Div) |
| 710 |
| 711 private: |
| 712 int32_t divisor_; |
| 713 }; |
| 714 |
| 715 |
| 678 class LDivI V8_FINAL : public LTemplateInstruction<1, 2, 1> { | 716 class LDivI V8_FINAL : public LTemplateInstruction<1, 2, 1> { |
| 679 public: | 717 public: |
| 680 LDivI(LOperand* left, LOperand* right, LOperand* temp) { | 718 LDivI(LOperand* left, LOperand* right, LOperand* temp) { |
| 681 inputs_[0] = left; | 719 inputs_[0] = left; |
| 682 inputs_[1] = right; | 720 inputs_[1] = right; |
| 683 temps_[0] = temp; | 721 temps_[0] = temp; |
| 684 } | 722 } |
| 685 | 723 |
| 686 LOperand* left() { return inputs_[0]; } | 724 LOperand* left() { return inputs_[0]; } |
| 687 LOperand* right() { return inputs_[1]; } | 725 LOperand* right() { return inputs_[1]; } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 706 | 744 |
| 707 DECLARE_CONCRETE_INSTRUCTION(FlooringDivByPowerOf2I, | 745 DECLARE_CONCRETE_INSTRUCTION(FlooringDivByPowerOf2I, |
| 708 "flooring-div-by-power-of-2-i") | 746 "flooring-div-by-power-of-2-i") |
| 709 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv) | 747 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv) |
| 710 | 748 |
| 711 private: | 749 private: |
| 712 int32_t divisor_; | 750 int32_t divisor_; |
| 713 }; | 751 }; |
| 714 | 752 |
| 715 | 753 |
| 716 class LFlooringDivByConstI V8_FINAL : public LTemplateInstruction<1, 2, 1> { | 754 class LFlooringDivByConstI V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 717 public: | 755 public: |
| 718 LFlooringDivByConstI(LOperand* dividend, LOperand* divisor, LOperand* temp) { | 756 LFlooringDivByConstI(LOperand* dividend, int32_t divisor) { |
| 719 inputs_[0] = dividend; | 757 inputs_[0] = dividend; |
| 720 inputs_[1] = divisor; | 758 divisor_ = divisor; |
| 721 temps_[0] = temp; | |
| 722 } | 759 } |
| 723 | 760 |
| 724 LOperand* dividend() { return inputs_[0]; } | 761 LOperand* dividend() { return inputs_[0]; } |
| 725 LOperand* divisor() { return inputs_[1]; } | 762 int32_t divisor() const { return divisor_; } |
| 726 LOperand* temp() { return temps_[0]; } | 763 LOperand* temp1() { return temps_[0]; } |
| 727 | 764 |
| 728 DECLARE_CONCRETE_INSTRUCTION(FlooringDivByConstI, "flooring-div-by-const-i") | 765 DECLARE_CONCRETE_INSTRUCTION(FlooringDivByConstI, "flooring-div-by-const-i") |
| 729 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv) | 766 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv) |
| 767 |
| 768 private: |
| 769 int32_t divisor_; |
| 730 }; | 770 }; |
| 731 | 771 |
| 732 | 772 |
| 733 class LMulI V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 773 class LMulI V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
| 734 public: | 774 public: |
| 735 LMulI(LOperand* left, LOperand* right) { | 775 LMulI(LOperand* left, LOperand* right) { |
| 736 inputs_[0] = left; | 776 inputs_[0] = left; |
| 737 inputs_[1] = right; | 777 inputs_[1] = right; |
| 738 } | 778 } |
| 739 | 779 |
| (...skipping 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2704 | 2744 |
| 2705 LInstruction* DoMathFloor(HUnaryMathOperation* instr); | 2745 LInstruction* DoMathFloor(HUnaryMathOperation* instr); |
| 2706 LInstruction* DoMathRound(HUnaryMathOperation* instr); | 2746 LInstruction* DoMathRound(HUnaryMathOperation* instr); |
| 2707 LInstruction* DoMathAbs(HUnaryMathOperation* instr); | 2747 LInstruction* DoMathAbs(HUnaryMathOperation* instr); |
| 2708 LInstruction* DoMathLog(HUnaryMathOperation* instr); | 2748 LInstruction* DoMathLog(HUnaryMathOperation* instr); |
| 2709 LInstruction* DoMathExp(HUnaryMathOperation* instr); | 2749 LInstruction* DoMathExp(HUnaryMathOperation* instr); |
| 2710 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); | 2750 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); |
| 2711 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); | 2751 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); |
| 2712 LInstruction* DoMathClz32(HUnaryMathOperation* instr); | 2752 LInstruction* DoMathClz32(HUnaryMathOperation* instr); |
| 2713 LInstruction* DoDivByPowerOf2I(HDiv* instr); | 2753 LInstruction* DoDivByPowerOf2I(HDiv* instr); |
| 2754 LInstruction* DoDivByConstI(HDiv* instr); |
| 2714 LInstruction* DoDivI(HBinaryOperation* instr); | 2755 LInstruction* DoDivI(HBinaryOperation* instr); |
| 2715 LInstruction* DoModByPowerOf2I(HMod* instr); | 2756 LInstruction* DoModByPowerOf2I(HMod* instr); |
| 2757 LInstruction* DoModByConstI(HMod* instr); |
| 2716 LInstruction* DoModI(HMod* instr); | 2758 LInstruction* DoModI(HMod* instr); |
| 2717 LInstruction* DoFlooringDivByPowerOf2I(HMathFloorOfDiv* instr); | 2759 LInstruction* DoFlooringDivByPowerOf2I(HMathFloorOfDiv* instr); |
| 2718 LInstruction* DoFlooringDivByConstI(HMathFloorOfDiv* instr); | 2760 LInstruction* DoFlooringDivByConstI(HMathFloorOfDiv* instr); |
| 2719 | 2761 |
| 2720 private: | 2762 private: |
| 2721 enum Status { | 2763 enum Status { |
| 2722 UNUSED, | 2764 UNUSED, |
| 2723 BUILDING, | 2765 BUILDING, |
| 2724 DONE, | 2766 DONE, |
| 2725 ABORTED | 2767 ABORTED |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2831 | 2873 |
| 2832 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2874 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2833 }; | 2875 }; |
| 2834 | 2876 |
| 2835 #undef DECLARE_HYDROGEN_ACCESSOR | 2877 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2836 #undef DECLARE_CONCRETE_INSTRUCTION | 2878 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2837 | 2879 |
| 2838 } } // namespace v8::internal | 2880 } } // namespace v8::internal |
| 2839 | 2881 |
| 2840 #endif // V8_ARM_LITHIUM_ARM_H_ | 2882 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |