OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_LITHIUM_ARM64_H_ | 5 #ifndef V8_ARM64_LITHIUM_ARM64_H_ |
6 #define V8_ARM64_LITHIUM_ARM64_H_ | 6 #define V8_ARM64_LITHIUM_ARM64_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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 // Iterator support. | 313 // Iterator support. |
314 int InputCount() FINAL { return I; } | 314 int InputCount() FINAL { return I; } |
315 LOperand* InputAt(int i) FINAL { return inputs_[i]; } | 315 LOperand* InputAt(int i) FINAL { return inputs_[i]; } |
316 | 316 |
317 int TempCount() FINAL { return T; } | 317 int TempCount() FINAL { return T; } |
318 LOperand* TempAt(int i) FINAL { return temps_[i]; } | 318 LOperand* TempAt(int i) FINAL { return temps_[i]; } |
319 }; | 319 }; |
320 | 320 |
321 | 321 |
322 class LTailCallThroughMegamorphicCache FINAL | 322 class LTailCallThroughMegamorphicCache FINAL |
323 : public LTemplateInstruction<0, 3, 0> { | 323 : public LTemplateInstruction<0, 5, 0> { |
324 public: | 324 public: |
325 explicit LTailCallThroughMegamorphicCache(LOperand* context, | 325 LTailCallThroughMegamorphicCache(LOperand* context, LOperand* receiver, |
326 LOperand* receiver, | 326 LOperand* name, LOperand* slot, |
327 LOperand* name) { | 327 LOperand* vector) { |
328 inputs_[0] = context; | 328 inputs_[0] = context; |
329 inputs_[1] = receiver; | 329 inputs_[1] = receiver; |
330 inputs_[2] = name; | 330 inputs_[2] = name; |
| 331 inputs_[3] = slot; |
| 332 inputs_[4] = vector; |
331 } | 333 } |
332 | 334 |
333 LOperand* context() { return inputs_[0]; } | 335 LOperand* context() { return inputs_[0]; } |
334 LOperand* receiver() { return inputs_[1]; } | 336 LOperand* receiver() { return inputs_[1]; } |
335 LOperand* name() { return inputs_[2]; } | 337 LOperand* name() { return inputs_[2]; } |
| 338 LOperand* slot() { return inputs_[3]; } |
| 339 LOperand* vector() { return inputs_[4]; } |
336 | 340 |
337 DECLARE_CONCRETE_INSTRUCTION(TailCallThroughMegamorphicCache, | 341 DECLARE_CONCRETE_INSTRUCTION(TailCallThroughMegamorphicCache, |
338 "tail-call-through-megamorphic-cache") | 342 "tail-call-through-megamorphic-cache") |
339 DECLARE_HYDROGEN_ACCESSOR(TailCallThroughMegamorphicCache) | 343 DECLARE_HYDROGEN_ACCESSOR(TailCallThroughMegamorphicCache) |
340 }; | 344 }; |
341 | 345 |
342 | 346 |
343 class LUnknownOSRValue FINAL : public LTemplateInstruction<1, 0, 0> { | 347 class LUnknownOSRValue FINAL : public LTemplateInstruction<1, 0, 0> { |
344 public: | 348 public: |
345 bool HasInterestingComment(LCodeGen* gen) const OVERRIDE { return false; } | 349 bool HasInterestingComment(LCodeGen* gen) const OVERRIDE { return false; } |
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1532 : descriptor_(descriptor), | 1536 : descriptor_(descriptor), |
1533 inputs_(descriptor.GetRegisterParameterCount() + 1, zone) { | 1537 inputs_(descriptor.GetRegisterParameterCount() + 1, zone) { |
1534 DCHECK(descriptor.GetRegisterParameterCount() + 1 == operands.length()); | 1538 DCHECK(descriptor.GetRegisterParameterCount() + 1 == operands.length()); |
1535 inputs_.AddAll(operands, zone); | 1539 inputs_.AddAll(operands, zone); |
1536 } | 1540 } |
1537 | 1541 |
1538 LOperand* target() const { return inputs_[0]; } | 1542 LOperand* target() const { return inputs_[0]; } |
1539 | 1543 |
1540 CallInterfaceDescriptor descriptor() { return descriptor_; } | 1544 CallInterfaceDescriptor descriptor() { return descriptor_; } |
1541 | 1545 |
| 1546 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) |
| 1547 |
1542 private: | 1548 private: |
1543 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") | 1549 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") |
1544 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) | |
1545 | 1550 |
1546 void PrintDataTo(StringStream* stream) OVERRIDE; | 1551 void PrintDataTo(StringStream* stream) OVERRIDE; |
1547 | 1552 |
1548 int arity() const { return hydrogen()->argument_count() - 1; } | 1553 int arity() const { return hydrogen()->argument_count() - 1; } |
1549 | 1554 |
1550 CallInterfaceDescriptor descriptor_; | 1555 CallInterfaceDescriptor descriptor_; |
1551 ZoneList<LOperand*> inputs_; | 1556 ZoneList<LOperand*> inputs_; |
1552 | 1557 |
1553 // Iterator support. | 1558 // Iterator support. |
1554 int InputCount() FINAL { return inputs_.length(); } | 1559 int InputCount() FINAL { return inputs_.length(); } |
(...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3234 | 3239 |
3235 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3240 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3236 }; | 3241 }; |
3237 | 3242 |
3238 #undef DECLARE_HYDROGEN_ACCESSOR | 3243 #undef DECLARE_HYDROGEN_ACCESSOR |
3239 #undef DECLARE_CONCRETE_INSTRUCTION | 3244 #undef DECLARE_CONCRETE_INSTRUCTION |
3240 | 3245 |
3241 } } // namespace v8::internal | 3246 } } // namespace v8::internal |
3242 | 3247 |
3243 #endif // V8_ARM64_LITHIUM_ARM64_H_ | 3248 #endif // V8_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |