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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_IA32_LITHIUM_IA32_H_ |
6 #define V8_IA32_LITHIUM_IA32_H_ | 6 #define V8_IA32_LITHIUM_IA32_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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 V(MathAbs) \ | 114 V(MathAbs) \ |
115 V(MathClz32) \ | 115 V(MathClz32) \ |
116 V(MathExp) \ | 116 V(MathExp) \ |
117 V(MathFloor) \ | 117 V(MathFloor) \ |
118 V(MathFround) \ | 118 V(MathFround) \ |
119 V(MathLog) \ | 119 V(MathLog) \ |
120 V(MathMinMax) \ | 120 V(MathMinMax) \ |
121 V(MathPowHalf) \ | 121 V(MathPowHalf) \ |
122 V(MathRound) \ | 122 V(MathRound) \ |
123 V(MathSqrt) \ | 123 V(MathSqrt) \ |
| 124 V(MaybeGrowElements) \ |
124 V(ModByConstI) \ | 125 V(ModByConstI) \ |
125 V(ModByPowerOf2I) \ | 126 V(ModByPowerOf2I) \ |
126 V(ModI) \ | 127 V(ModI) \ |
127 V(MulI) \ | 128 V(MulI) \ |
128 V(NumberTagD) \ | 129 V(NumberTagD) \ |
129 V(NumberTagI) \ | 130 V(NumberTagI) \ |
130 V(NumberTagU) \ | 131 V(NumberTagU) \ |
131 V(NumberUntagD) \ | 132 V(NumberUntagD) \ |
132 V(OsrEntry) \ | 133 V(OsrEntry) \ |
133 V(Parameter) \ | 134 V(Parameter) \ |
(...skipping 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2309 } | 2310 } |
2310 | 2311 |
2311 LOperand* object() { return inputs_[0]; } | 2312 LOperand* object() { return inputs_[0]; } |
2312 LOperand* temp() { return temps_[0]; } | 2313 LOperand* temp() { return temps_[0]; } |
2313 | 2314 |
2314 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, | 2315 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, |
2315 "trap-allocation-memento") | 2316 "trap-allocation-memento") |
2316 }; | 2317 }; |
2317 | 2318 |
2318 | 2319 |
| 2320 class LMaybeGrowElements final : public LTemplateInstruction<1, 5, 0> { |
| 2321 public: |
| 2322 LMaybeGrowElements(LOperand* context, LOperand* object, LOperand* elements, |
| 2323 LOperand* key, LOperand* current_capacity) { |
| 2324 inputs_[0] = context; |
| 2325 inputs_[1] = object; |
| 2326 inputs_[2] = elements; |
| 2327 inputs_[3] = key; |
| 2328 inputs_[4] = current_capacity; |
| 2329 } |
| 2330 |
| 2331 LOperand* context() { return inputs_[0]; } |
| 2332 LOperand* object() { return inputs_[1]; } |
| 2333 LOperand* elements() { return inputs_[2]; } |
| 2334 LOperand* key() { return inputs_[3]; } |
| 2335 LOperand* current_capacity() { return inputs_[4]; } |
| 2336 |
| 2337 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) |
| 2338 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") |
| 2339 }; |
| 2340 |
| 2341 |
2319 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { | 2342 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { |
2320 public: | 2343 public: |
2321 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { | 2344 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { |
2322 inputs_[0] = context; | 2345 inputs_[0] = context; |
2323 inputs_[1] = left; | 2346 inputs_[1] = left; |
2324 inputs_[2] = right; | 2347 inputs_[2] = right; |
2325 } | 2348 } |
2326 | 2349 |
2327 LOperand* context() { return inputs_[0]; } | 2350 LOperand* context() { return inputs_[0]; } |
2328 LOperand* left() { return inputs_[1]; } | 2351 LOperand* left() { return inputs_[1]; } |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2868 | 2891 |
2869 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2892 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2870 }; | 2893 }; |
2871 | 2894 |
2872 #undef DECLARE_HYDROGEN_ACCESSOR | 2895 #undef DECLARE_HYDROGEN_ACCESSOR |
2873 #undef DECLARE_CONCRETE_INSTRUCTION | 2896 #undef DECLARE_CONCRETE_INSTRUCTION |
2874 | 2897 |
2875 } } // namespace v8::internal | 2898 } } // namespace v8::internal |
2876 | 2899 |
2877 #endif // V8_IA32_LITHIUM_IA32_H_ | 2900 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |