| 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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 class ContextOnlyDescriptor : public CallInterfaceDescriptor { | 531 class ContextOnlyDescriptor : public CallInterfaceDescriptor { |
| 532 public: | 532 public: |
| 533 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor) | 533 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor) |
| 534 }; | 534 }; |
| 535 | 535 |
| 536 | 536 |
| 537 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { | 537 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { |
| 538 public: | 538 public: |
| 539 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) | 539 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) |
| 540 | 540 |
| 541 enum RegisterInfo { kObjectIndex, kKeyIndex, kCapacityIndex }; | 541 enum RegisterInfo { kObjectIndex, kKeyIndex }; |
| 542 static const Register ObjectRegister(); | 542 static const Register ObjectRegister(); |
| 543 static const Register KeyRegister(); | 543 static const Register KeyRegister(); |
| 544 static const Register CapacityRegister(); | |
| 545 }; | 544 }; |
| 546 | 545 |
| 547 #undef DECLARE_DESCRIPTOR | 546 #undef DECLARE_DESCRIPTOR |
| 548 | 547 |
| 549 | 548 |
| 550 // We define the association between CallDescriptors::Key and the specialized | 549 // We define the association between CallDescriptors::Key and the specialized |
| 551 // descriptor here to reduce boilerplate and mistakes. | 550 // descriptor here to reduce boilerplate and mistakes. |
| 552 #define DEF_KEY(name) \ | 551 #define DEF_KEY(name) \ |
| 553 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } | 552 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } |
| 554 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) | 553 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) |
| 555 #undef DEF_KEY | 554 #undef DEF_KEY |
| 556 } | 555 } |
| 557 } // namespace v8::internal | 556 } // namespace v8::internal |
| 558 | 557 |
| 559 | 558 |
| 560 #if V8_TARGET_ARCH_ARM64 | 559 #if V8_TARGET_ARCH_ARM64 |
| 561 #include "src/arm64/interface-descriptors-arm64.h" | 560 #include "src/arm64/interface-descriptors-arm64.h" |
| 562 #elif V8_TARGET_ARCH_ARM | 561 #elif V8_TARGET_ARCH_ARM |
| 563 #include "src/arm/interface-descriptors-arm.h" | 562 #include "src/arm/interface-descriptors-arm.h" |
| 564 #endif | 563 #endif |
| 565 | 564 |
| 566 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 565 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
| OLD | NEW |