| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_S390_LITHIUM_S390_H_ | 5 #ifndef V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
| 6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_H_ | 6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 | 829 |
| 830 class LMathClz32 final : public LTemplateInstruction<1, 1, 0> { | 830 class LMathClz32 final : public LTemplateInstruction<1, 1, 0> { |
| 831 public: | 831 public: |
| 832 explicit LMathClz32(LOperand* value) { inputs_[0] = value; } | 832 explicit LMathClz32(LOperand* value) { inputs_[0] = value; } |
| 833 | 833 |
| 834 LOperand* value() { return inputs_[0]; } | 834 LOperand* value() { return inputs_[0]; } |
| 835 | 835 |
| 836 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") | 836 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") |
| 837 }; | 837 }; |
| 838 | 838 |
| 839 class LMathExp final : public LTemplateInstruction<1, 1, 3> { | 839 class LMathExp final : public LTemplateInstruction<1, 1, 0> { |
| 840 public: | 840 public: |
| 841 LMathExp(LOperand* value, LOperand* double_temp, LOperand* temp1, | 841 explicit LMathExp(LOperand* value) { inputs_[0] = value; } |
| 842 LOperand* temp2) { | |
| 843 inputs_[0] = value; | |
| 844 temps_[0] = temp1; | |
| 845 temps_[1] = temp2; | |
| 846 temps_[2] = double_temp; | |
| 847 ExternalReference::InitializeMathExpData(); | |
| 848 } | |
| 849 | 842 |
| 850 LOperand* value() { return inputs_[0]; } | 843 LOperand* value() { return inputs_[0]; } |
| 851 LOperand* temp1() { return temps_[0]; } | |
| 852 LOperand* temp2() { return temps_[1]; } | |
| 853 LOperand* double_temp() { return temps_[2]; } | |
| 854 | 844 |
| 855 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") | 845 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") |
| 856 }; | 846 }; |
| 857 | 847 |
| 858 class LMathSqrt final : public LTemplateInstruction<1, 1, 0> { | 848 class LMathSqrt final : public LTemplateInstruction<1, 1, 0> { |
| 859 public: | 849 public: |
| 860 explicit LMathSqrt(LOperand* value) { inputs_[0] = value; } | 850 explicit LMathSqrt(LOperand* value) { inputs_[0] = value; } |
| 861 | 851 |
| 862 LOperand* value() { return inputs_[0]; } | 852 LOperand* value() { return inputs_[0]; } |
| 863 | 853 |
| (...skipping 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2406 | 2396 |
| 2407 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2397 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2408 }; | 2398 }; |
| 2409 | 2399 |
| 2410 #undef DECLARE_HYDROGEN_ACCESSOR | 2400 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2411 #undef DECLARE_CONCRETE_INSTRUCTION | 2401 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2412 } // namespace internal | 2402 } // namespace internal |
| 2413 } // namespace v8 | 2403 } // namespace v8 |
| 2414 | 2404 |
| 2415 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ | 2405 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
| OLD | NEW |