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 | 915 class LMathExp final : public LTemplateInstruction<1, 1, 0> { |
916 class LMathExp final : public LTemplateInstruction<1, 1, 2> { | |
917 public: | 916 public: |
918 LMathExp(LOperand* value, | 917 explicit LMathExp(LOperand* value) { inputs_[0] = value; } |
919 LOperand* temp1, | |
920 LOperand* temp2) { | |
921 inputs_[0] = value; | |
922 temps_[0] = temp1; | |
923 temps_[1] = temp2; | |
924 ExternalReference::InitializeMathExpData(); | |
925 } | |
926 | 918 |
927 LOperand* value() { return inputs_[0]; } | 919 LOperand* value() { return inputs_[0]; } |
928 LOperand* temp1() { return temps_[0]; } | |
929 LOperand* temp2() { return temps_[1]; } | |
930 | 920 |
931 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") | 921 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") |
932 }; | 922 }; |
933 | 923 |
934 | 924 |
935 class LMathSqrt final : public LTemplateInstruction<1, 1, 0> { | 925 class LMathSqrt final : public LTemplateInstruction<1, 1, 0> { |
936 public: | 926 public: |
937 explicit LMathSqrt(LOperand* value) { | 927 explicit LMathSqrt(LOperand* value) { |
938 inputs_[0] = value; | 928 inputs_[0] = value; |
939 } | 929 } |
(...skipping 1730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2670 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2660 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2671 }; | 2661 }; |
2672 | 2662 |
2673 #undef DECLARE_HYDROGEN_ACCESSOR | 2663 #undef DECLARE_HYDROGEN_ACCESSOR |
2674 #undef DECLARE_CONCRETE_INSTRUCTION | 2664 #undef DECLARE_CONCRETE_INSTRUCTION |
2675 | 2665 |
2676 } // namespace internal | 2666 } // namespace internal |
2677 } // namespace v8 | 2667 } // namespace v8 |
2678 | 2668 |
2679 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2669 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
OLD | NEW |