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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 V(LoadFieldByIndex) \ | 117 V(LoadFieldByIndex) \ |
118 V(LoadFunctionPrototype) \ | 118 V(LoadFunctionPrototype) \ |
119 V(LoadGlobalCell) \ | 119 V(LoadGlobalCell) \ |
120 V(LoadGlobalGeneric) \ | 120 V(LoadGlobalGeneric) \ |
121 V(LoadKeyed) \ | 121 V(LoadKeyed) \ |
122 V(LoadKeyedGeneric) \ | 122 V(LoadKeyedGeneric) \ |
123 V(LoadNamedField) \ | 123 V(LoadNamedField) \ |
124 V(LoadNamedGeneric) \ | 124 V(LoadNamedGeneric) \ |
125 V(MapEnumLength) \ | 125 V(MapEnumLength) \ |
126 V(MathAbs) \ | 126 V(MathAbs) \ |
| 127 V(MathClz32) \ |
127 V(MathExp) \ | 128 V(MathExp) \ |
128 V(MathFloor) \ | 129 V(MathFloor) \ |
129 V(MathFloorOfDiv) \ | 130 V(MathFloorOfDiv) \ |
130 V(MathLog) \ | 131 V(MathLog) \ |
131 V(MathMinMax) \ | 132 V(MathMinMax) \ |
132 V(MathPowHalf) \ | 133 V(MathPowHalf) \ |
133 V(MathRound) \ | 134 V(MathRound) \ |
134 V(MathSqrt) \ | 135 V(MathSqrt) \ |
135 V(ModI) \ | 136 V(ModI) \ |
136 V(MulI) \ | 137 V(MulI) \ |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 explicit LMathLog(LOperand* value) { | 803 explicit LMathLog(LOperand* value) { |
803 inputs_[0] = value; | 804 inputs_[0] = value; |
804 } | 805 } |
805 | 806 |
806 LOperand* value() { return inputs_[0]; } | 807 LOperand* value() { return inputs_[0]; } |
807 | 808 |
808 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log") | 809 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log") |
809 }; | 810 }; |
810 | 811 |
811 | 812 |
| 813 class LMathClz32 V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 814 public: |
| 815 explicit LMathClz32(LOperand* value) { |
| 816 inputs_[0] = value; |
| 817 } |
| 818 |
| 819 LOperand* value() { return inputs_[0]; } |
| 820 |
| 821 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") |
| 822 }; |
| 823 |
| 824 |
812 class LMathExp V8_FINAL : public LTemplateInstruction<1, 1, 3> { | 825 class LMathExp V8_FINAL : public LTemplateInstruction<1, 1, 3> { |
813 public: | 826 public: |
814 LMathExp(LOperand* value, | 827 LMathExp(LOperand* value, |
815 LOperand* double_temp, | 828 LOperand* double_temp, |
816 LOperand* temp1, | 829 LOperand* temp1, |
817 LOperand* temp2) { | 830 LOperand* temp2) { |
818 inputs_[0] = value; | 831 inputs_[0] = value; |
819 temps_[0] = temp1; | 832 temps_[0] = temp1; |
820 temps_[1] = temp2; | 833 temps_[1] = temp2; |
821 temps_[2] = double_temp; | 834 temps_[2] = double_temp; |
(...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2599 | 2612 |
2600 static bool HasMagicNumberForDivisor(int32_t divisor); | 2613 static bool HasMagicNumberForDivisor(int32_t divisor); |
2601 | 2614 |
2602 LInstruction* DoMathFloor(HUnaryMathOperation* instr); | 2615 LInstruction* DoMathFloor(HUnaryMathOperation* instr); |
2603 LInstruction* DoMathRound(HUnaryMathOperation* instr); | 2616 LInstruction* DoMathRound(HUnaryMathOperation* instr); |
2604 LInstruction* DoMathAbs(HUnaryMathOperation* instr); | 2617 LInstruction* DoMathAbs(HUnaryMathOperation* instr); |
2605 LInstruction* DoMathLog(HUnaryMathOperation* instr); | 2618 LInstruction* DoMathLog(HUnaryMathOperation* instr); |
2606 LInstruction* DoMathExp(HUnaryMathOperation* instr); | 2619 LInstruction* DoMathExp(HUnaryMathOperation* instr); |
2607 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); | 2620 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); |
2608 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); | 2621 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); |
| 2622 LInstruction* DoMathClz32(HUnaryMathOperation* instr); |
2609 | 2623 |
2610 private: | 2624 private: |
2611 enum Status { | 2625 enum Status { |
2612 UNUSED, | 2626 UNUSED, |
2613 BUILDING, | 2627 BUILDING, |
2614 DONE, | 2628 DONE, |
2615 ABORTED | 2629 ABORTED |
2616 }; | 2630 }; |
2617 | 2631 |
2618 LPlatformChunk* chunk() const { return chunk_; } | 2632 LPlatformChunk* chunk() const { return chunk_; } |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2721 | 2735 |
2722 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2736 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2723 }; | 2737 }; |
2724 | 2738 |
2725 #undef DECLARE_HYDROGEN_ACCESSOR | 2739 #undef DECLARE_HYDROGEN_ACCESSOR |
2726 #undef DECLARE_CONCRETE_INSTRUCTION | 2740 #undef DECLARE_CONCRETE_INSTRUCTION |
2727 | 2741 |
2728 } } // namespace v8::internal | 2742 } } // namespace v8::internal |
2729 | 2743 |
2730 #endif // V8_ARM_LITHIUM_ARM_H_ | 2744 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |