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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 V(LoadContextSlot) \ | 90 V(LoadContextSlot) \ |
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(MathCos) \ |
| 101 V(MathSin) \ |
100 V(MathExp) \ | 102 V(MathExp) \ |
101 V(MathClz32) \ | 103 V(MathClz32) \ |
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) \ |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 public: | 877 public: |
876 explicit LMathClz32(LOperand* value) { | 878 explicit LMathClz32(LOperand* value) { |
877 inputs_[0] = value; | 879 inputs_[0] = value; |
878 } | 880 } |
879 | 881 |
880 LOperand* value() { return inputs_[0]; } | 882 LOperand* value() { return inputs_[0]; } |
881 | 883 |
882 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") | 884 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") |
883 }; | 885 }; |
884 | 886 |
| 887 class LMathCos final : public LTemplateInstruction<1, 1, 0> { |
| 888 public: |
| 889 explicit LMathCos(LOperand* value) { inputs_[0] = value; } |
| 890 |
| 891 LOperand* value() { return inputs_[0]; } |
| 892 |
| 893 DECLARE_CONCRETE_INSTRUCTION(MathCos, "math-cos") |
| 894 }; |
| 895 |
| 896 class LMathSin final : public LTemplateInstruction<1, 1, 0> { |
| 897 public: |
| 898 explicit LMathSin(LOperand* value) { inputs_[0] = value; } |
| 899 |
| 900 LOperand* value() { return inputs_[0]; } |
| 901 |
| 902 DECLARE_CONCRETE_INSTRUCTION(MathSin, "math-sin") |
| 903 }; |
| 904 |
885 class LMathExp final : public LTemplateInstruction<1, 1, 0> { | 905 class LMathExp final : public LTemplateInstruction<1, 1, 0> { |
886 public: | 906 public: |
887 explicit LMathExp(LOperand* value) { inputs_[0] = value; } | 907 explicit LMathExp(LOperand* value) { inputs_[0] = value; } |
888 | 908 |
889 LOperand* value() { return inputs_[0]; } | 909 LOperand* value() { return inputs_[0]; } |
890 | 910 |
891 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") | 911 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") |
892 }; | 912 }; |
893 | 913 |
894 | 914 |
(...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2483 | 2503 |
2484 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend); | 2504 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend); |
2485 | 2505 |
2486 static bool HasMagicNumberForDivisor(int32_t divisor); | 2506 static bool HasMagicNumberForDivisor(int32_t divisor); |
2487 | 2507 |
2488 LInstruction* DoMathFloor(HUnaryMathOperation* instr); | 2508 LInstruction* DoMathFloor(HUnaryMathOperation* instr); |
2489 LInstruction* DoMathRound(HUnaryMathOperation* instr); | 2509 LInstruction* DoMathRound(HUnaryMathOperation* instr); |
2490 LInstruction* DoMathFround(HUnaryMathOperation* instr); | 2510 LInstruction* DoMathFround(HUnaryMathOperation* instr); |
2491 LInstruction* DoMathAbs(HUnaryMathOperation* instr); | 2511 LInstruction* DoMathAbs(HUnaryMathOperation* instr); |
2492 LInstruction* DoMathLog(HUnaryMathOperation* instr); | 2512 LInstruction* DoMathLog(HUnaryMathOperation* instr); |
| 2513 LInstruction* DoMathCos(HUnaryMathOperation* instr); |
| 2514 LInstruction* DoMathSin(HUnaryMathOperation* instr); |
2493 LInstruction* DoMathExp(HUnaryMathOperation* instr); | 2515 LInstruction* DoMathExp(HUnaryMathOperation* instr); |
2494 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); | 2516 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); |
2495 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); | 2517 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); |
2496 LInstruction* DoMathClz32(HUnaryMathOperation* instr); | 2518 LInstruction* DoMathClz32(HUnaryMathOperation* instr); |
2497 LInstruction* DoDivByPowerOf2I(HDiv* instr); | 2519 LInstruction* DoDivByPowerOf2I(HDiv* instr); |
2498 LInstruction* DoDivByConstI(HDiv* instr); | 2520 LInstruction* DoDivByConstI(HDiv* instr); |
2499 LInstruction* DoDivI(HDiv* instr); | 2521 LInstruction* DoDivI(HDiv* instr); |
2500 LInstruction* DoModByPowerOf2I(HMod* instr); | 2522 LInstruction* DoModByPowerOf2I(HMod* instr); |
2501 LInstruction* DoModByConstI(HMod* instr); | 2523 LInstruction* DoModByConstI(HMod* instr); |
2502 LInstruction* DoModI(HMod* instr); | 2524 LInstruction* DoModI(HMod* instr); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2598 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2620 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2599 }; | 2621 }; |
2600 | 2622 |
2601 #undef DECLARE_HYDROGEN_ACCESSOR | 2623 #undef DECLARE_HYDROGEN_ACCESSOR |
2602 #undef DECLARE_CONCRETE_INSTRUCTION | 2624 #undef DECLARE_CONCRETE_INSTRUCTION |
2603 | 2625 |
2604 } // namespace internal | 2626 } // namespace internal |
2605 } // namespace v8 | 2627 } // namespace v8 |
2606 | 2628 |
2607 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2629 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |