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_X87_LITHIUM_X87_H_ | 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 V(LoadFieldByIndex) \ | 96 V(LoadFieldByIndex) \ |
97 V(LoadFunctionPrototype) \ | 97 V(LoadFunctionPrototype) \ |
98 V(LoadGlobalGeneric) \ | 98 V(LoadGlobalGeneric) \ |
99 V(LoadKeyed) \ | 99 V(LoadKeyed) \ |
100 V(LoadKeyedGeneric) \ | 100 V(LoadKeyedGeneric) \ |
101 V(LoadNamedField) \ | 101 V(LoadNamedField) \ |
102 V(LoadNamedGeneric) \ | 102 V(LoadNamedGeneric) \ |
103 V(LoadRoot) \ | 103 V(LoadRoot) \ |
104 V(MathAbs) \ | 104 V(MathAbs) \ |
105 V(MathClz32) \ | 105 V(MathClz32) \ |
| 106 V(MathCos) \ |
106 V(MathExp) \ | 107 V(MathExp) \ |
107 V(MathFloor) \ | 108 V(MathFloor) \ |
108 V(MathFround) \ | 109 V(MathFround) \ |
109 V(MathLog) \ | 110 V(MathLog) \ |
110 V(MathMinMax) \ | 111 V(MathMinMax) \ |
111 V(MathPowHalf) \ | 112 V(MathPowHalf) \ |
112 V(MathRound) \ | 113 V(MathRound) \ |
113 V(MathSqrt) \ | 114 V(MathSqrt) \ |
114 V(MaybeGrowElements) \ | 115 V(MaybeGrowElements) \ |
| 116 V(MathSin) \ |
115 V(ModByConstI) \ | 117 V(ModByConstI) \ |
116 V(ModByPowerOf2I) \ | 118 V(ModByPowerOf2I) \ |
117 V(ModI) \ | 119 V(ModI) \ |
118 V(MulI) \ | 120 V(MulI) \ |
119 V(NumberTagD) \ | 121 V(NumberTagD) \ |
120 V(NumberTagI) \ | 122 V(NumberTagI) \ |
121 V(NumberTagU) \ | 123 V(NumberTagU) \ |
122 V(NumberUntagD) \ | 124 V(NumberUntagD) \ |
123 V(OsrEntry) \ | 125 V(OsrEntry) \ |
124 V(Parameter) \ | 126 V(Parameter) \ |
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 public: | 899 public: |
898 explicit LMathClz32(LOperand* value) { | 900 explicit LMathClz32(LOperand* value) { |
899 inputs_[0] = value; | 901 inputs_[0] = value; |
900 } | 902 } |
901 | 903 |
902 LOperand* value() { return inputs_[0]; } | 904 LOperand* value() { return inputs_[0]; } |
903 | 905 |
904 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") | 906 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") |
905 }; | 907 }; |
906 | 908 |
| 909 class LMathCos final : public LTemplateInstruction<1, 1, 0> { |
| 910 public: |
| 911 explicit LMathCos(LOperand* value) { inputs_[0] = value; } |
| 912 |
| 913 LOperand* value() { return inputs_[0]; } |
| 914 |
| 915 DECLARE_CONCRETE_INSTRUCTION(MathCos, "math-cos") |
| 916 }; |
| 917 |
| 918 class LMathSin final : public LTemplateInstruction<1, 1, 0> { |
| 919 public: |
| 920 explicit LMathSin(LOperand* value) { inputs_[0] = value; } |
| 921 |
| 922 LOperand* value() { return inputs_[0]; } |
| 923 |
| 924 DECLARE_CONCRETE_INSTRUCTION(MathSin, "math-sin") |
| 925 }; |
| 926 |
907 class LMathExp final : public LTemplateInstruction<1, 1, 0> { | 927 class LMathExp final : public LTemplateInstruction<1, 1, 0> { |
908 public: | 928 public: |
909 explicit LMathExp(LOperand* value) { inputs_[0] = value; } | 929 explicit LMathExp(LOperand* value) { inputs_[0] = value; } |
910 | 930 |
911 LOperand* value() { return inputs_[0]; } | 931 LOperand* value() { return inputs_[0]; } |
912 | 932 |
913 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") | 933 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") |
914 }; | 934 }; |
915 | 935 |
916 | 936 |
(...skipping 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2527 // Declare methods that deal with the individual node types. | 2547 // Declare methods that deal with the individual node types. |
2528 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); | 2548 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); |
2529 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 2549 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
2530 #undef DECLARE_DO | 2550 #undef DECLARE_DO |
2531 | 2551 |
2532 LInstruction* DoMathFloor(HUnaryMathOperation* instr); | 2552 LInstruction* DoMathFloor(HUnaryMathOperation* instr); |
2533 LInstruction* DoMathRound(HUnaryMathOperation* instr); | 2553 LInstruction* DoMathRound(HUnaryMathOperation* instr); |
2534 LInstruction* DoMathFround(HUnaryMathOperation* instr); | 2554 LInstruction* DoMathFround(HUnaryMathOperation* instr); |
2535 LInstruction* DoMathAbs(HUnaryMathOperation* instr); | 2555 LInstruction* DoMathAbs(HUnaryMathOperation* instr); |
2536 LInstruction* DoMathLog(HUnaryMathOperation* instr); | 2556 LInstruction* DoMathLog(HUnaryMathOperation* instr); |
| 2557 LInstruction* DoMathCos(HUnaryMathOperation* instr); |
| 2558 LInstruction* DoMathSin(HUnaryMathOperation* instr); |
2537 LInstruction* DoMathExp(HUnaryMathOperation* instr); | 2559 LInstruction* DoMathExp(HUnaryMathOperation* instr); |
2538 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); | 2560 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); |
2539 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); | 2561 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); |
2540 LInstruction* DoMathClz32(HUnaryMathOperation* instr); | 2562 LInstruction* DoMathClz32(HUnaryMathOperation* instr); |
2541 LInstruction* DoDivByPowerOf2I(HDiv* instr); | 2563 LInstruction* DoDivByPowerOf2I(HDiv* instr); |
2542 LInstruction* DoDivByConstI(HDiv* instr); | 2564 LInstruction* DoDivByConstI(HDiv* instr); |
2543 LInstruction* DoDivI(HDiv* instr); | 2565 LInstruction* DoDivI(HDiv* instr); |
2544 LInstruction* DoModByPowerOf2I(HMod* instr); | 2566 LInstruction* DoModByPowerOf2I(HMod* instr); |
2545 LInstruction* DoModByConstI(HMod* instr); | 2567 LInstruction* DoModByConstI(HMod* instr); |
2546 LInstruction* DoModI(HMod* instr); | 2568 LInstruction* DoModI(HMod* instr); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2650 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2672 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2651 }; | 2673 }; |
2652 | 2674 |
2653 #undef DECLARE_HYDROGEN_ACCESSOR | 2675 #undef DECLARE_HYDROGEN_ACCESSOR |
2654 #undef DECLARE_CONCRETE_INSTRUCTION | 2676 #undef DECLARE_CONCRETE_INSTRUCTION |
2655 | 2677 |
2656 } // namespace internal | 2678 } // namespace internal |
2657 } // namespace v8 | 2679 } // namespace v8 |
2658 | 2680 |
2659 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 2681 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
OLD | NEW |