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 108 matching lines...) Loading... |
119 V(LoadFunctionPrototype) \ | 119 V(LoadFunctionPrototype) \ |
120 V(LoadGlobalCell) \ | 120 V(LoadGlobalCell) \ |
121 V(LoadGlobalGeneric) \ | 121 V(LoadGlobalGeneric) \ |
122 V(LoadKeyed) \ | 122 V(LoadKeyed) \ |
123 V(LoadKeyedGeneric) \ | 123 V(LoadKeyedGeneric) \ |
124 V(LoadNamedField) \ | 124 V(LoadNamedField) \ |
125 V(LoadNamedGeneric) \ | 125 V(LoadNamedGeneric) \ |
126 V(LoadRoot) \ | 126 V(LoadRoot) \ |
127 V(MapEnumLength) \ | 127 V(MapEnumLength) \ |
128 V(MathAbs) \ | 128 V(MathAbs) \ |
| 129 V(MathClz32) \ |
129 V(MathExp) \ | 130 V(MathExp) \ |
130 V(MathFloor) \ | 131 V(MathFloor) \ |
131 V(MathFloorOfDiv) \ | 132 V(MathFloorOfDiv) \ |
132 V(MathLog) \ | 133 V(MathLog) \ |
133 V(MathMinMax) \ | 134 V(MathMinMax) \ |
134 V(MathPowHalf) \ | 135 V(MathPowHalf) \ |
135 V(MathRound) \ | 136 V(MathRound) \ |
136 V(MathSqrt) \ | 137 V(MathSqrt) \ |
137 V(ModI) \ | 138 V(ModI) \ |
138 V(MulI) \ | 139 V(MulI) \ |
(...skipping 636 matching lines...) Loading... |
775 explicit LMathLog(LOperand* value) { | 776 explicit LMathLog(LOperand* value) { |
776 inputs_[0] = value; | 777 inputs_[0] = value; |
777 } | 778 } |
778 | 779 |
779 LOperand* value() { return inputs_[0]; } | 780 LOperand* value() { return inputs_[0]; } |
780 | 781 |
781 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log") | 782 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log") |
782 }; | 783 }; |
783 | 784 |
784 | 785 |
| 786 class LMathClz32 V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 787 public: |
| 788 explicit LMathClz32(LOperand* value) { |
| 789 inputs_[0] = value; |
| 790 } |
| 791 |
| 792 LOperand* value() { return inputs_[0]; } |
| 793 |
| 794 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") |
| 795 }; |
| 796 |
| 797 |
785 class LMathExp V8_FINAL : public LTemplateInstruction<1, 1, 2> { | 798 class LMathExp V8_FINAL : public LTemplateInstruction<1, 1, 2> { |
786 public: | 799 public: |
787 LMathExp(LOperand* value, | 800 LMathExp(LOperand* value, |
788 LOperand* temp1, | 801 LOperand* temp1, |
789 LOperand* temp2) { | 802 LOperand* temp2) { |
790 inputs_[0] = value; | 803 inputs_[0] = value; |
791 temps_[0] = temp1; | 804 temps_[0] = temp1; |
792 temps_[1] = temp2; | 805 temps_[1] = temp2; |
793 ExternalReference::InitializeMathExpData(); | 806 ExternalReference::InitializeMathExpData(); |
794 } | 807 } |
(...skipping 1810 matching lines...) Loading... |
2605 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 2618 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
2606 #undef DECLARE_DO | 2619 #undef DECLARE_DO |
2607 | 2620 |
2608 LInstruction* DoMathFloor(HUnaryMathOperation* instr); | 2621 LInstruction* DoMathFloor(HUnaryMathOperation* instr); |
2609 LInstruction* DoMathRound(HUnaryMathOperation* instr); | 2622 LInstruction* DoMathRound(HUnaryMathOperation* instr); |
2610 LInstruction* DoMathAbs(HUnaryMathOperation* instr); | 2623 LInstruction* DoMathAbs(HUnaryMathOperation* instr); |
2611 LInstruction* DoMathLog(HUnaryMathOperation* instr); | 2624 LInstruction* DoMathLog(HUnaryMathOperation* instr); |
2612 LInstruction* DoMathExp(HUnaryMathOperation* instr); | 2625 LInstruction* DoMathExp(HUnaryMathOperation* instr); |
2613 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); | 2626 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); |
2614 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); | 2627 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); |
| 2628 LInstruction* DoMathClz32(HUnaryMathOperation* instr); |
2615 | 2629 |
2616 private: | 2630 private: |
2617 enum Status { | 2631 enum Status { |
2618 UNUSED, | 2632 UNUSED, |
2619 BUILDING, | 2633 BUILDING, |
2620 DONE, | 2634 DONE, |
2621 ABORTED | 2635 ABORTED |
2622 }; | 2636 }; |
2623 | 2637 |
2624 LPlatformChunk* chunk() const { return chunk_; } | 2638 LPlatformChunk* chunk() const { return chunk_; } |
(...skipping 116 matching lines...) Loading... |
2741 | 2755 |
2742 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2756 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2743 }; | 2757 }; |
2744 | 2758 |
2745 #undef DECLARE_HYDROGEN_ACCESSOR | 2759 #undef DECLARE_HYDROGEN_ACCESSOR |
2746 #undef DECLARE_CONCRETE_INSTRUCTION | 2760 #undef DECLARE_CONCRETE_INSTRUCTION |
2747 | 2761 |
2748 } } // namespace v8::internal | 2762 } } // namespace v8::internal |
2749 | 2763 |
2750 #endif // V8_IA32_LITHIUM_IA32_H_ | 2764 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |