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_X87_LITHIUM_X87_H_ | 5 #ifndef V8_X87_LITHIUM_X87_H_ |
6 #define V8_X87_LITHIUM_X87_H_ | 6 #define V8_X87_LITHIUM_X87_H_ |
7 | 7 |
8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 V(MathAbs) \ | 115 V(MathAbs) \ |
116 V(MathClz32) \ | 116 V(MathClz32) \ |
117 V(MathExp) \ | 117 V(MathExp) \ |
118 V(MathFloor) \ | 118 V(MathFloor) \ |
119 V(MathFround) \ | 119 V(MathFround) \ |
120 V(MathLog) \ | 120 V(MathLog) \ |
121 V(MathMinMax) \ | 121 V(MathMinMax) \ |
122 V(MathPowHalf) \ | 122 V(MathPowHalf) \ |
123 V(MathRound) \ | 123 V(MathRound) \ |
124 V(MathSqrt) \ | 124 V(MathSqrt) \ |
| 125 V(MaybeGrowElements) \ |
125 V(ModByConstI) \ | 126 V(ModByConstI) \ |
126 V(ModByPowerOf2I) \ | 127 V(ModByPowerOf2I) \ |
127 V(ModI) \ | 128 V(ModI) \ |
128 V(MulI) \ | 129 V(MulI) \ |
129 V(NumberTagD) \ | 130 V(NumberTagD) \ |
130 V(NumberTagI) \ | 131 V(NumberTagI) \ |
131 V(NumberTagU) \ | 132 V(NumberTagU) \ |
132 V(NumberUntagD) \ | 133 V(NumberUntagD) \ |
133 V(OsrEntry) \ | 134 V(OsrEntry) \ |
134 V(Parameter) \ | 135 V(Parameter) \ |
(...skipping 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2318 } | 2319 } |
2319 | 2320 |
2320 LOperand* object() { return inputs_[0]; } | 2321 LOperand* object() { return inputs_[0]; } |
2321 LOperand* temp() { return temps_[0]; } | 2322 LOperand* temp() { return temps_[0]; } |
2322 | 2323 |
2323 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, | 2324 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, |
2324 "trap-allocation-memento") | 2325 "trap-allocation-memento") |
2325 }; | 2326 }; |
2326 | 2327 |
2327 | 2328 |
| 2329 class LMaybeGrowElements final : public LTemplateInstruction<1, 5, 0> { |
| 2330 public: |
| 2331 LMaybeGrowElements(LOperand* context, LOperand* object, LOperand* elements, |
| 2332 LOperand* key, LOperand* current_capacity) { |
| 2333 inputs_[0] = context; |
| 2334 inputs_[1] = object; |
| 2335 inputs_[2] = elements; |
| 2336 inputs_[3] = key; |
| 2337 inputs_[4] = current_capacity; |
| 2338 } |
| 2339 |
| 2340 LOperand* context() { return inputs_[0]; } |
| 2341 LOperand* object() { return inputs_[1]; } |
| 2342 LOperand* elements() { return inputs_[2]; } |
| 2343 LOperand* key() { return inputs_[3]; } |
| 2344 LOperand* current_capacity() { return inputs_[4]; } |
| 2345 |
| 2346 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) |
| 2347 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") |
| 2348 }; |
| 2349 |
| 2350 |
2328 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { | 2351 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { |
2329 public: | 2352 public: |
2330 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { | 2353 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { |
2331 inputs_[0] = context; | 2354 inputs_[0] = context; |
2332 inputs_[1] = left; | 2355 inputs_[1] = left; |
2333 inputs_[2] = right; | 2356 inputs_[2] = right; |
2334 } | 2357 } |
2335 | 2358 |
2336 LOperand* context() { return inputs_[0]; } | 2359 LOperand* context() { return inputs_[0]; } |
2337 LOperand* left() { return inputs_[1]; } | 2360 LOperand* left() { return inputs_[1]; } |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2885 | 2908 |
2886 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2909 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2887 }; | 2910 }; |
2888 | 2911 |
2889 #undef DECLARE_HYDROGEN_ACCESSOR | 2912 #undef DECLARE_HYDROGEN_ACCESSOR |
2890 #undef DECLARE_CONCRETE_INSTRUCTION | 2913 #undef DECLARE_CONCRETE_INSTRUCTION |
2891 | 2914 |
2892 } } // namespace v8::internal | 2915 } } // namespace v8::internal |
2893 | 2916 |
2894 #endif // V8_X87_LITHIUM_X87_H_ | 2917 #endif // V8_X87_LITHIUM_X87_H_ |
OLD | NEW |