| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 V(LoadFunctionPrototype) \ | 126 V(LoadFunctionPrototype) \ |
| 127 V(LoadGlobalCell) \ | 127 V(LoadGlobalCell) \ |
| 128 V(LoadGlobalGeneric) \ | 128 V(LoadGlobalGeneric) \ |
| 129 V(LoadKeyed) \ | 129 V(LoadKeyed) \ |
| 130 V(LoadKeyedGeneric) \ | 130 V(LoadKeyedGeneric) \ |
| 131 V(LoadNamedField) \ | 131 V(LoadNamedField) \ |
| 132 V(LoadNamedGeneric) \ | 132 V(LoadNamedGeneric) \ |
| 133 V(LoadRoot) \ | 133 V(LoadRoot) \ |
| 134 V(MapEnumLength) \ | 134 V(MapEnumLength) \ |
| 135 V(MathAbs) \ | 135 V(MathAbs) \ |
| 136 V(MathCos) \ | |
| 137 V(MathExp) \ | 136 V(MathExp) \ |
| 138 V(MathFloor) \ | 137 V(MathFloor) \ |
| 139 V(MathFloorOfDiv) \ | 138 V(MathFloorOfDiv) \ |
| 140 V(MathLog) \ | 139 V(MathLog) \ |
| 141 V(MathMinMax) \ | 140 V(MathMinMax) \ |
| 142 V(MathPowHalf) \ | 141 V(MathPowHalf) \ |
| 143 V(MathRound) \ | 142 V(MathRound) \ |
| 144 V(MathSin) \ | |
| 145 V(MathSqrt) \ | 143 V(MathSqrt) \ |
| 146 V(MathTan) \ | |
| 147 V(ModI) \ | 144 V(ModI) \ |
| 148 V(MulI) \ | 145 V(MulI) \ |
| 149 V(NumberTagD) \ | 146 V(NumberTagD) \ |
| 150 V(NumberTagI) \ | 147 V(NumberTagI) \ |
| 151 V(NumberTagU) \ | 148 V(NumberTagU) \ |
| 152 V(NumberUntagD) \ | 149 V(NumberUntagD) \ |
| 153 V(OsrEntry) \ | 150 V(OsrEntry) \ |
| 154 V(OuterContext) \ | 151 V(OuterContext) \ |
| 155 V(Parameter) \ | 152 V(Parameter) \ |
| 156 V(Power) \ | 153 V(Power) \ |
| (...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 explicit LMathLog(LOperand* value) { | 782 explicit LMathLog(LOperand* value) { |
| 786 inputs_[0] = value; | 783 inputs_[0] = value; |
| 787 } | 784 } |
| 788 | 785 |
| 789 LOperand* value() { return inputs_[0]; } | 786 LOperand* value() { return inputs_[0]; } |
| 790 | 787 |
| 791 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log") | 788 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log") |
| 792 }; | 789 }; |
| 793 | 790 |
| 794 | 791 |
| 795 class LMathSin V8_FINAL : public LTemplateInstruction<1, 1, 0> { | |
| 796 public: | |
| 797 explicit LMathSin(LOperand* value) { | |
| 798 inputs_[0] = value; | |
| 799 } | |
| 800 | |
| 801 LOperand* value() { return inputs_[0]; } | |
| 802 | |
| 803 DECLARE_CONCRETE_INSTRUCTION(MathSin, "math-sin") | |
| 804 }; | |
| 805 | |
| 806 | |
| 807 class LMathCos V8_FINAL : public LTemplateInstruction<1, 1, 0> { | |
| 808 public: | |
| 809 explicit LMathCos(LOperand* value) { | |
| 810 inputs_[0] = value; | |
| 811 } | |
| 812 | |
| 813 LOperand* value() { return inputs_[0]; } | |
| 814 | |
| 815 DECLARE_CONCRETE_INSTRUCTION(MathCos, "math-cos") | |
| 816 }; | |
| 817 | |
| 818 | |
| 819 class LMathTan V8_FINAL : public LTemplateInstruction<1, 1, 0> { | |
| 820 public: | |
| 821 explicit LMathTan(LOperand* value) { | |
| 822 inputs_[0] = value; | |
| 823 } | |
| 824 | |
| 825 LOperand* value() { return inputs_[0]; } | |
| 826 | |
| 827 DECLARE_CONCRETE_INSTRUCTION(MathTan, "math-tan") | |
| 828 }; | |
| 829 | |
| 830 | |
| 831 class LMathExp V8_FINAL : public LTemplateInstruction<1, 1, 2> { | 792 class LMathExp V8_FINAL : public LTemplateInstruction<1, 1, 2> { |
| 832 public: | 793 public: |
| 833 LMathExp(LOperand* value, | 794 LMathExp(LOperand* value, |
| 834 LOperand* temp1, | 795 LOperand* temp1, |
| 835 LOperand* temp2) { | 796 LOperand* temp2) { |
| 836 inputs_[0] = value; | 797 inputs_[0] = value; |
| 837 temps_[0] = temp1; | 798 temps_[0] = temp1; |
| 838 temps_[1] = temp2; | 799 temps_[1] = temp2; |
| 839 ExternalReference::InitializeMathExpData(); | 800 ExternalReference::InitializeMathExpData(); |
| 840 } | 801 } |
| (...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1794 LOperand* function() { return inputs_[0]; } | 1755 LOperand* function() { return inputs_[0]; } |
| 1795 LOperand* code_object() { return temps_[0]; } | 1756 LOperand* code_object() { return temps_[0]; } |
| 1796 | 1757 |
| 1797 virtual void PrintDataTo(StringStream* stream); | 1758 virtual void PrintDataTo(StringStream* stream); |
| 1798 | 1759 |
| 1799 DECLARE_CONCRETE_INSTRUCTION(StoreCodeEntry, "store-code-entry") | 1760 DECLARE_CONCRETE_INSTRUCTION(StoreCodeEntry, "store-code-entry") |
| 1800 DECLARE_HYDROGEN_ACCESSOR(StoreCodeEntry) | 1761 DECLARE_HYDROGEN_ACCESSOR(StoreCodeEntry) |
| 1801 }; | 1762 }; |
| 1802 | 1763 |
| 1803 | 1764 |
| 1804 class LInnerAllocatedObject V8_FINAL: public LTemplateInstruction<1, 1, 0> { | 1765 class LInnerAllocatedObject V8_FINAL: public LTemplateInstruction<1, 2, 0> { |
| 1805 public: | 1766 public: |
| 1806 explicit LInnerAllocatedObject(LOperand* base_object) { | 1767 LInnerAllocatedObject(LOperand* base_object, LOperand* offset) { |
| 1807 inputs_[0] = base_object; | 1768 inputs_[0] = base_object; |
| 1769 inputs_[1] = offset; |
| 1808 } | 1770 } |
| 1809 | 1771 |
| 1810 LOperand* base_object() { return inputs_[0]; } | 1772 LOperand* base_object() const { return inputs_[0]; } |
| 1811 int offset() { return hydrogen()->offset(); } | 1773 LOperand* offset() const { return inputs_[1]; } |
| 1812 | 1774 |
| 1813 virtual void PrintDataTo(StringStream* stream); | 1775 virtual void PrintDataTo(StringStream* stream); |
| 1814 | 1776 |
| 1815 DECLARE_CONCRETE_INSTRUCTION(InnerAllocatedObject, "sub-allocated-object") | 1777 DECLARE_CONCRETE_INSTRUCTION(InnerAllocatedObject, "inner-allocated-object") |
| 1816 DECLARE_HYDROGEN_ACCESSOR(InnerAllocatedObject) | |
| 1817 }; | 1778 }; |
| 1818 | 1779 |
| 1819 | 1780 |
| 1820 class LThisFunction V8_FINAL : public LTemplateInstruction<1, 0, 0> { | 1781 class LThisFunction V8_FINAL : public LTemplateInstruction<1, 0, 0> { |
| 1821 public: | 1782 public: |
| 1822 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") | 1783 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") |
| 1823 DECLARE_HYDROGEN_ACCESSOR(ThisFunction) | 1784 DECLARE_HYDROGEN_ACCESSOR(ThisFunction) |
| 1824 }; | 1785 }; |
| 1825 | 1786 |
| 1826 | 1787 |
| (...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2780 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); | 2741 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); |
| 2781 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 2742 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
| 2782 #undef DECLARE_DO | 2743 #undef DECLARE_DO |
| 2783 | 2744 |
| 2784 static HValue* SimplifiedDivisorForMathFloorOfDiv(HValue* val); | 2745 static HValue* SimplifiedDivisorForMathFloorOfDiv(HValue* val); |
| 2785 | 2746 |
| 2786 LInstruction* DoMathFloor(HUnaryMathOperation* instr); | 2747 LInstruction* DoMathFloor(HUnaryMathOperation* instr); |
| 2787 LInstruction* DoMathRound(HUnaryMathOperation* instr); | 2748 LInstruction* DoMathRound(HUnaryMathOperation* instr); |
| 2788 LInstruction* DoMathAbs(HUnaryMathOperation* instr); | 2749 LInstruction* DoMathAbs(HUnaryMathOperation* instr); |
| 2789 LInstruction* DoMathLog(HUnaryMathOperation* instr); | 2750 LInstruction* DoMathLog(HUnaryMathOperation* instr); |
| 2790 LInstruction* DoMathSin(HUnaryMathOperation* instr); | |
| 2791 LInstruction* DoMathCos(HUnaryMathOperation* instr); | |
| 2792 LInstruction* DoMathTan(HUnaryMathOperation* instr); | |
| 2793 LInstruction* DoMathExp(HUnaryMathOperation* instr); | 2751 LInstruction* DoMathExp(HUnaryMathOperation* instr); |
| 2794 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); | 2752 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); |
| 2795 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); | 2753 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); |
| 2796 | 2754 |
| 2797 private: | 2755 private: |
| 2798 enum Status { | 2756 enum Status { |
| 2799 UNUSED, | 2757 UNUSED, |
| 2800 BUILDING, | 2758 BUILDING, |
| 2801 DONE, | 2759 DONE, |
| 2802 ABORTED | 2760 ABORTED |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2936 | 2894 |
| 2937 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2895 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2938 }; | 2896 }; |
| 2939 | 2897 |
| 2940 #undef DECLARE_HYDROGEN_ACCESSOR | 2898 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2941 #undef DECLARE_CONCRETE_INSTRUCTION | 2899 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2942 | 2900 |
| 2943 } } // namespace v8::internal | 2901 } } // namespace v8::internal |
| 2944 | 2902 |
| 2945 #endif // V8_IA32_LITHIUM_IA32_H_ | 2903 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |