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 2178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2312 } | 2313 } |
2313 | 2314 |
2314 LOperand* object() { return inputs_[0]; } | 2315 LOperand* object() { return inputs_[0]; } |
2315 LOperand* temp() { return temps_[0]; } | 2316 LOperand* temp() { return temps_[0]; } |
2316 | 2317 |
2317 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, | 2318 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, |
2318 "trap-allocation-memento") | 2319 "trap-allocation-memento") |
2319 }; | 2320 }; |
2320 | 2321 |
2321 | 2322 |
| 2323 class LMaybeGrowElements final : public LTemplateInstruction<1, 5, 0> { |
| 2324 public: |
| 2325 LMaybeGrowElements(LOperand* context, LOperand* object, LOperand* elements, |
| 2326 LOperand* key, LOperand* current_capacity) { |
| 2327 inputs_[0] = context; |
| 2328 inputs_[1] = object; |
| 2329 inputs_[2] = elements; |
| 2330 inputs_[3] = key; |
| 2331 inputs_[4] = current_capacity; |
| 2332 } |
| 2333 |
| 2334 LOperand* context() { return inputs_[0]; } |
| 2335 LOperand* object() { return inputs_[1]; } |
| 2336 LOperand* elements() { return inputs_[2]; } |
| 2337 LOperand* key() { return inputs_[3]; } |
| 2338 LOperand* current_capacity() { return inputs_[4]; } |
| 2339 |
| 2340 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) |
| 2341 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") |
| 2342 }; |
| 2343 |
| 2344 |
2322 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { | 2345 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { |
2323 public: | 2346 public: |
2324 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { | 2347 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { |
2325 inputs_[0] = context; | 2348 inputs_[0] = context; |
2326 inputs_[1] = left; | 2349 inputs_[1] = left; |
2327 inputs_[2] = right; | 2350 inputs_[2] = right; |
2328 } | 2351 } |
2329 | 2352 |
2330 LOperand* context() { return inputs_[0]; } | 2353 LOperand* context() { return inputs_[0]; } |
2331 LOperand* left() { return inputs_[1]; } | 2354 LOperand* left() { return inputs_[1]; } |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2871 | 2894 |
2872 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2895 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2873 }; | 2896 }; |
2874 | 2897 |
2875 #undef DECLARE_HYDROGEN_ACCESSOR | 2898 #undef DECLARE_HYDROGEN_ACCESSOR |
2876 #undef DECLARE_CONCRETE_INSTRUCTION | 2899 #undef DECLARE_CONCRETE_INSTRUCTION |
2877 | 2900 |
2878 } } // namespace v8::internal | 2901 } } // namespace v8::internal |
2879 | 2902 |
2880 #endif // V8_IA32_LITHIUM_IA32_H_ | 2903 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |