OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
7 | 7 |
8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 public: | 905 public: |
906 explicit LMathClz32(LOperand* value) { | 906 explicit LMathClz32(LOperand* value) { |
907 inputs_[0] = value; | 907 inputs_[0] = value; |
908 } | 908 } |
909 | 909 |
910 LOperand* value() { return inputs_[0]; } | 910 LOperand* value() { return inputs_[0]; } |
911 | 911 |
912 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") | 912 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") |
913 }; | 913 }; |
914 | 914 |
915 class LMathExp final : public LTemplateInstruction<1, 1, 0> { | 915 |
| 916 class LMathExp final : public LTemplateInstruction<1, 1, 2> { |
916 public: | 917 public: |
917 explicit LMathExp(LOperand* value) { inputs_[0] = value; } | 918 LMathExp(LOperand* value, |
| 919 LOperand* temp1, |
| 920 LOperand* temp2) { |
| 921 inputs_[0] = value; |
| 922 temps_[0] = temp1; |
| 923 temps_[1] = temp2; |
| 924 ExternalReference::InitializeMathExpData(); |
| 925 } |
918 | 926 |
919 LOperand* value() { return inputs_[0]; } | 927 LOperand* value() { return inputs_[0]; } |
| 928 LOperand* temp1() { return temps_[0]; } |
| 929 LOperand* temp2() { return temps_[1]; } |
920 | 930 |
921 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") | 931 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") |
922 }; | 932 }; |
923 | 933 |
924 | 934 |
925 class LMathSqrt final : public LTemplateInstruction<1, 1, 0> { | 935 class LMathSqrt final : public LTemplateInstruction<1, 1, 0> { |
926 public: | 936 public: |
927 explicit LMathSqrt(LOperand* value) { | 937 explicit LMathSqrt(LOperand* value) { |
928 inputs_[0] = value; | 938 inputs_[0] = value; |
929 } | 939 } |
(...skipping 1730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2660 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2670 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2661 }; | 2671 }; |
2662 | 2672 |
2663 #undef DECLARE_HYDROGEN_ACCESSOR | 2673 #undef DECLARE_HYDROGEN_ACCESSOR |
2664 #undef DECLARE_CONCRETE_INSTRUCTION | 2674 #undef DECLARE_CONCRETE_INSTRUCTION |
2665 | 2675 |
2666 } // namespace internal | 2676 } // namespace internal |
2667 } // namespace v8 | 2677 } // namespace v8 |
2668 | 2678 |
2669 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2679 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
OLD | NEW |