| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_CALL_INTERFACE_DESCRIPTOR_H_ | 5 #ifndef V8_CALL_INTERFACE_DESCRIPTOR_H_ |
| 6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_ | 6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
| 10 | 10 |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 class ContextOnlyDescriptor : public CallInterfaceDescriptor { | 538 class ContextOnlyDescriptor : public CallInterfaceDescriptor { |
| 539 public: | 539 public: |
| 540 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor) | 540 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor) |
| 541 }; | 541 }; |
| 542 | 542 |
| 543 | 543 |
| 544 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { | 544 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { |
| 545 public: | 545 public: |
| 546 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) | 546 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) |
| 547 | 547 |
| 548 enum RegisterInfo { kObjectIndex, kKeyIndex, kCapacityIndex }; | 548 enum RegisterInfo { kObjectIndex, kKeyIndex }; |
| 549 static const Register ObjectRegister(); | 549 static const Register ObjectRegister(); |
| 550 static const Register KeyRegister(); | 550 static const Register KeyRegister(); |
| 551 static const Register CapacityRegister(); | |
| 552 }; | 551 }; |
| 553 | 552 |
| 554 #undef DECLARE_DESCRIPTOR | 553 #undef DECLARE_DESCRIPTOR |
| 555 | 554 |
| 556 | 555 |
| 557 // We define the association between CallDescriptors::Key and the specialized | 556 // We define the association between CallDescriptors::Key and the specialized |
| 558 // descriptor here to reduce boilerplate and mistakes. | 557 // descriptor here to reduce boilerplate and mistakes. |
| 559 #define DEF_KEY(name) \ | 558 #define DEF_KEY(name) \ |
| 560 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } | 559 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } |
| 561 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) | 560 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) |
| 562 #undef DEF_KEY | 561 #undef DEF_KEY |
| 563 } | 562 } |
| 564 } // namespace v8::internal | 563 } // namespace v8::internal |
| 565 | 564 |
| 566 | 565 |
| 567 #if V8_TARGET_ARCH_ARM64 | 566 #if V8_TARGET_ARCH_ARM64 |
| 568 #include "src/arm64/interface-descriptors-arm64.h" | 567 #include "src/arm64/interface-descriptors-arm64.h" |
| 569 #elif V8_TARGET_ARCH_ARM | 568 #elif V8_TARGET_ARCH_ARM |
| 570 #include "src/arm/interface-descriptors-arm.h" | 569 #include "src/arm/interface-descriptors-arm.h" |
| 571 #endif | 570 #endif |
| 572 | 571 |
| 573 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 572 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
| OLD | NEW |