| 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_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
| 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 895 class LMathClz32 final : public LTemplateInstruction<1, 1, 0> { | 895 class LMathClz32 final : public LTemplateInstruction<1, 1, 0> { |
| 896 public: | 896 public: |
| 897 explicit LMathClz32(LOperand* value) { inputs_[0] = value; } | 897 explicit LMathClz32(LOperand* value) { inputs_[0] = value; } |
| 898 | 898 |
| 899 LOperand* value() { return inputs_[0]; } | 899 LOperand* value() { return inputs_[0]; } |
| 900 | 900 |
| 901 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") | 901 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") |
| 902 }; | 902 }; |
| 903 | 903 |
| 904 | 904 |
| 905 class LMathExp final : public LTemplateInstruction<1, 1, 3> { | 905 class LMathExp final : public LTemplateInstruction<1, 1, 0> { |
| 906 public: | 906 public: |
| 907 LMathExp(LOperand* value, LOperand* double_temp, LOperand* temp1, | 907 explicit LMathExp(LOperand* value) { inputs_[0] = value; } |
| 908 LOperand* temp2) { | |
| 909 inputs_[0] = value; | |
| 910 temps_[0] = temp1; | |
| 911 temps_[1] = temp2; | |
| 912 temps_[2] = double_temp; | |
| 913 ExternalReference::InitializeMathExpData(); | |
| 914 } | |
| 915 | 908 |
| 916 LOperand* value() { return inputs_[0]; } | 909 LOperand* value() { return inputs_[0]; } |
| 917 LOperand* temp1() { return temps_[0]; } | |
| 918 LOperand* temp2() { return temps_[1]; } | |
| 919 LOperand* double_temp() { return temps_[2]; } | |
| 920 | 910 |
| 921 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") | 911 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") |
| 922 }; | 912 }; |
| 923 | 913 |
| 924 | 914 |
| 925 class LMathSqrt final : public LTemplateInstruction<1, 1, 0> { | 915 class LMathSqrt final : public LTemplateInstruction<1, 1, 0> { |
| 926 public: | 916 public: |
| 927 explicit LMathSqrt(LOperand* value) { inputs_[0] = value; } | 917 explicit LMathSqrt(LOperand* value) { inputs_[0] = value; } |
| 928 | 918 |
| 929 LOperand* value() { return inputs_[0]; } | 919 LOperand* value() { return inputs_[0]; } |
| (...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2567 | 2557 |
| 2568 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2558 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2569 }; | 2559 }; |
| 2570 | 2560 |
| 2571 #undef DECLARE_HYDROGEN_ACCESSOR | 2561 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2572 #undef DECLARE_CONCRETE_INSTRUCTION | 2562 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2573 } // namespace internal | 2563 } // namespace internal |
| 2574 } // namespace v8 | 2564 } // namespace v8 |
| 2575 | 2565 |
| 2576 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 2566 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
| OLD | NEW |