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 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1516 } | 1516 } |
1517 | 1517 |
1518 LOperand* value() { return inputs_[0]; } | 1518 LOperand* value() { return inputs_[0]; } |
1519 | 1519 |
1520 DECLARE_CONCRETE_INSTRUCTION(Integer32ToDouble, "int32-to-double") | 1520 DECLARE_CONCRETE_INSTRUCTION(Integer32ToDouble, "int32-to-double") |
1521 }; | 1521 }; |
1522 | 1522 |
1523 | 1523 |
1524 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { | 1524 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { |
1525 public: | 1525 public: |
1526 LCallWithDescriptor(const InterfaceDescriptor* descriptor, | 1526 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, |
1527 const ZoneList<LOperand*>& operands, | 1527 const ZoneList<LOperand*>& operands, Zone* zone) |
1528 Zone* zone) | 1528 : descriptor_(descriptor), |
1529 : descriptor_(descriptor), | 1529 inputs_(descriptor->GetRegisterParameterCount() + 1, zone) { |
1530 inputs_(descriptor->GetRegisterParameterCount() + 1, zone) { | |
1531 DCHECK(descriptor->GetRegisterParameterCount() + 1 == operands.length()); | 1530 DCHECK(descriptor->GetRegisterParameterCount() + 1 == operands.length()); |
1532 inputs_.AddAll(operands, zone); | 1531 inputs_.AddAll(operands, zone); |
1533 } | 1532 } |
1534 | 1533 |
1535 LOperand* target() const { return inputs_[0]; } | 1534 LOperand* target() const { return inputs_[0]; } |
1536 | 1535 |
1537 const InterfaceDescriptor* descriptor() { return descriptor_; } | 1536 const CallInterfaceDescriptor* descriptor() { return descriptor_; } |
1538 | 1537 |
1539 private: | 1538 private: |
1540 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") | 1539 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") |
1541 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) | 1540 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) |
1542 | 1541 |
1543 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1542 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
1544 | 1543 |
1545 int arity() const { return hydrogen()->argument_count() - 1; } | 1544 int arity() const { return hydrogen()->argument_count() - 1; } |
1546 | 1545 |
1547 const InterfaceDescriptor* descriptor_; | 1546 const CallInterfaceDescriptor* descriptor_; |
1548 ZoneList<LOperand*> inputs_; | 1547 ZoneList<LOperand*> inputs_; |
1549 | 1548 |
1550 // Iterator support. | 1549 // Iterator support. |
1551 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); } | 1550 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); } |
1552 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } | 1551 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } |
1553 | 1552 |
1554 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; } | 1553 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; } |
1555 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; } | 1554 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; } |
1556 }; | 1555 }; |
1557 | 1556 |
(...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3260 | 3259 |
3261 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3260 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3262 }; | 3261 }; |
3263 | 3262 |
3264 #undef DECLARE_HYDROGEN_ACCESSOR | 3263 #undef DECLARE_HYDROGEN_ACCESSOR |
3265 #undef DECLARE_CONCRETE_INSTRUCTION | 3264 #undef DECLARE_CONCRETE_INSTRUCTION |
3266 | 3265 |
3267 } } // namespace v8::internal | 3266 } } // namespace v8::internal |
3268 | 3267 |
3269 #endif // V8_ARM64_LITHIUM_ARM64_H_ | 3268 #endif // V8_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |