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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 V(LoadRoot) \ | 91 V(LoadRoot) \ |
92 V(LoadFieldByIndex) \ | 92 V(LoadFieldByIndex) \ |
93 V(LoadFunctionPrototype) \ | 93 V(LoadFunctionPrototype) \ |
94 V(LoadGlobalGeneric) \ | 94 V(LoadGlobalGeneric) \ |
95 V(LoadKeyed) \ | 95 V(LoadKeyed) \ |
96 V(LoadKeyedGeneric) \ | 96 V(LoadKeyedGeneric) \ |
97 V(LoadNamedField) \ | 97 V(LoadNamedField) \ |
98 V(LoadNamedGeneric) \ | 98 V(LoadNamedGeneric) \ |
99 V(MathAbs) \ | 99 V(MathAbs) \ |
100 V(MathClz32) \ | 100 V(MathClz32) \ |
| 101 V(MathCos) \ |
| 102 V(MathSin) \ |
101 V(MathExp) \ | 103 V(MathExp) \ |
102 V(MathFloor) \ | 104 V(MathFloor) \ |
103 V(MathFround) \ | 105 V(MathFround) \ |
104 V(MathLog) \ | 106 V(MathLog) \ |
105 V(MathMinMax) \ | 107 V(MathMinMax) \ |
106 V(MathPowHalf) \ | 108 V(MathPowHalf) \ |
107 V(MathRound) \ | 109 V(MathRound) \ |
108 V(MathSqrt) \ | 110 V(MathSqrt) \ |
109 V(MaybeGrowElements) \ | 111 V(MaybeGrowElements) \ |
110 V(ModByConstI) \ | 112 V(ModByConstI) \ |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 | 831 |
830 class LMathClz32 final : public LTemplateInstruction<1, 1, 0> { | 832 class LMathClz32 final : public LTemplateInstruction<1, 1, 0> { |
831 public: | 833 public: |
832 explicit LMathClz32(LOperand* value) { inputs_[0] = value; } | 834 explicit LMathClz32(LOperand* value) { inputs_[0] = value; } |
833 | 835 |
834 LOperand* value() { return inputs_[0]; } | 836 LOperand* value() { return inputs_[0]; } |
835 | 837 |
836 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") | 838 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") |
837 }; | 839 }; |
838 | 840 |
| 841 class LMathCos final : public LTemplateInstruction<1, 1, 0> { |
| 842 public: |
| 843 explicit LMathCos(LOperand* value) { inputs_[0] = value; } |
| 844 |
| 845 LOperand* value() { return inputs_[0]; } |
| 846 |
| 847 DECLARE_CONCRETE_INSTRUCTION(MathCos, "math-cos") |
| 848 }; |
| 849 |
| 850 class LMathSin final : public LTemplateInstruction<1, 1, 0> { |
| 851 public: |
| 852 explicit LMathSin(LOperand* value) { inputs_[0] = value; } |
| 853 |
| 854 LOperand* value() { return inputs_[0]; } |
| 855 |
| 856 DECLARE_CONCRETE_INSTRUCTION(MathSin, "math-sin") |
| 857 }; |
| 858 |
839 class LMathExp final : public LTemplateInstruction<1, 1, 0> { | 859 class LMathExp final : public LTemplateInstruction<1, 1, 0> { |
840 public: | 860 public: |
841 explicit LMathExp(LOperand* value) { inputs_[0] = value; } | 861 explicit LMathExp(LOperand* value) { inputs_[0] = value; } |
842 | 862 |
843 LOperand* value() { return inputs_[0]; } | 863 LOperand* value() { return inputs_[0]; } |
844 | 864 |
845 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") | 865 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") |
846 }; | 866 }; |
847 | 867 |
848 class LMathSqrt final : public LTemplateInstruction<1, 1, 0> { | 868 class LMathSqrt final : public LTemplateInstruction<1, 1, 0> { |
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2286 LInstruction* DoMultiplySub(HValue* minuend, HMul* mul); | 2306 LInstruction* DoMultiplySub(HValue* minuend, HMul* mul); |
2287 LInstruction* DoRSub(HSub* instr); | 2307 LInstruction* DoRSub(HSub* instr); |
2288 | 2308 |
2289 static bool HasMagicNumberForDivisor(int32_t divisor); | 2309 static bool HasMagicNumberForDivisor(int32_t divisor); |
2290 | 2310 |
2291 LInstruction* DoMathFloor(HUnaryMathOperation* instr); | 2311 LInstruction* DoMathFloor(HUnaryMathOperation* instr); |
2292 LInstruction* DoMathRound(HUnaryMathOperation* instr); | 2312 LInstruction* DoMathRound(HUnaryMathOperation* instr); |
2293 LInstruction* DoMathFround(HUnaryMathOperation* instr); | 2313 LInstruction* DoMathFround(HUnaryMathOperation* instr); |
2294 LInstruction* DoMathAbs(HUnaryMathOperation* instr); | 2314 LInstruction* DoMathAbs(HUnaryMathOperation* instr); |
2295 LInstruction* DoMathLog(HUnaryMathOperation* instr); | 2315 LInstruction* DoMathLog(HUnaryMathOperation* instr); |
| 2316 LInstruction* DoMathCos(HUnaryMathOperation* instr); |
| 2317 LInstruction* DoMathSin(HUnaryMathOperation* instr); |
2296 LInstruction* DoMathExp(HUnaryMathOperation* instr); | 2318 LInstruction* DoMathExp(HUnaryMathOperation* instr); |
2297 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); | 2319 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); |
2298 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); | 2320 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); |
2299 LInstruction* DoMathClz32(HUnaryMathOperation* instr); | 2321 LInstruction* DoMathClz32(HUnaryMathOperation* instr); |
2300 LInstruction* DoDivByPowerOf2I(HDiv* instr); | 2322 LInstruction* DoDivByPowerOf2I(HDiv* instr); |
2301 LInstruction* DoDivByConstI(HDiv* instr); | 2323 LInstruction* DoDivByConstI(HDiv* instr); |
2302 LInstruction* DoDivI(HDiv* instr); | 2324 LInstruction* DoDivI(HDiv* instr); |
2303 LInstruction* DoModByPowerOf2I(HMod* instr); | 2325 LInstruction* DoModByPowerOf2I(HMod* instr); |
2304 LInstruction* DoModByConstI(HMod* instr); | 2326 LInstruction* DoModByConstI(HMod* instr); |
2305 LInstruction* DoModI(HMod* instr); | 2327 LInstruction* DoModI(HMod* instr); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2396 | 2418 |
2397 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2419 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2398 }; | 2420 }; |
2399 | 2421 |
2400 #undef DECLARE_HYDROGEN_ACCESSOR | 2422 #undef DECLARE_HYDROGEN_ACCESSOR |
2401 #undef DECLARE_CONCRETE_INSTRUCTION | 2423 #undef DECLARE_CONCRETE_INSTRUCTION |
2402 } // namespace internal | 2424 } // namespace internal |
2403 } // namespace v8 | 2425 } // namespace v8 |
2404 | 2426 |
2405 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ | 2427 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
OLD | NEW |