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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 V(MathAbs) \ | 110 V(MathAbs) \ |
111 V(MathExp) \ | 111 V(MathExp) \ |
112 V(MathClz32) \ | 112 V(MathClz32) \ |
113 V(MathFloor) \ | 113 V(MathFloor) \ |
114 V(MathFround) \ | 114 V(MathFround) \ |
115 V(MathLog) \ | 115 V(MathLog) \ |
116 V(MathMinMax) \ | 116 V(MathMinMax) \ |
117 V(MathPowHalf) \ | 117 V(MathPowHalf) \ |
118 V(MathRound) \ | 118 V(MathRound) \ |
119 V(MathSqrt) \ | 119 V(MathSqrt) \ |
| 120 V(MaybeGrowElements) \ |
120 V(ModByConstI) \ | 121 V(ModByConstI) \ |
121 V(ModByPowerOf2I) \ | 122 V(ModByPowerOf2I) \ |
122 V(ModI) \ | 123 V(ModI) \ |
123 V(MulI) \ | 124 V(MulI) \ |
124 V(MultiplyAddD) \ | 125 V(MultiplyAddD) \ |
125 V(NumberTagD) \ | 126 V(NumberTagD) \ |
126 V(NumberTagU) \ | 127 V(NumberTagU) \ |
127 V(NumberUntagD) \ | 128 V(NumberUntagD) \ |
128 V(OsrEntry) \ | 129 V(OsrEntry) \ |
129 V(Parameter) \ | 130 V(Parameter) \ |
(...skipping 2120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2250 } | 2251 } |
2251 | 2252 |
2252 LOperand* object() { return inputs_[0]; } | 2253 LOperand* object() { return inputs_[0]; } |
2253 LOperand* temp() { return temps_[0]; } | 2254 LOperand* temp() { return temps_[0]; } |
2254 | 2255 |
2255 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, | 2256 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, |
2256 "trap-allocation-memento") | 2257 "trap-allocation-memento") |
2257 }; | 2258 }; |
2258 | 2259 |
2259 | 2260 |
| 2261 class LMaybeGrowElements final : public LTemplateInstruction<1, 5, 0> { |
| 2262 public: |
| 2263 LMaybeGrowElements(LOperand* context, LOperand* object, LOperand* elements, |
| 2264 LOperand* key, LOperand* current_capacity) { |
| 2265 inputs_[0] = context; |
| 2266 inputs_[1] = object; |
| 2267 inputs_[2] = elements; |
| 2268 inputs_[3] = key; |
| 2269 inputs_[4] = current_capacity; |
| 2270 } |
| 2271 |
| 2272 LOperand* context() { return inputs_[0]; } |
| 2273 LOperand* object() { return inputs_[1]; } |
| 2274 LOperand* elements() { return inputs_[2]; } |
| 2275 LOperand* key() { return inputs_[3]; } |
| 2276 LOperand* current_capacity() { return inputs_[4]; } |
| 2277 |
| 2278 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) |
| 2279 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") |
| 2280 }; |
| 2281 |
| 2282 |
2260 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { | 2283 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { |
2261 public: | 2284 public: |
2262 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { | 2285 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { |
2263 inputs_[0] = context; | 2286 inputs_[0] = context; |
2264 inputs_[1] = left; | 2287 inputs_[1] = left; |
2265 inputs_[2] = right; | 2288 inputs_[2] = right; |
2266 } | 2289 } |
2267 | 2290 |
2268 LOperand* context() { return inputs_[0]; } | 2291 LOperand* context() { return inputs_[0]; } |
2269 LOperand* left() { return inputs_[1]; } | 2292 LOperand* left() { return inputs_[1]; } |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2813 | 2836 |
2814 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2837 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2815 }; | 2838 }; |
2816 | 2839 |
2817 #undef DECLARE_HYDROGEN_ACCESSOR | 2840 #undef DECLARE_HYDROGEN_ACCESSOR |
2818 #undef DECLARE_CONCRETE_INSTRUCTION | 2841 #undef DECLARE_CONCRETE_INSTRUCTION |
2819 | 2842 |
2820 } } // namespace v8::internal | 2843 } } // namespace v8::internal |
2821 | 2844 |
2822 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2845 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |