| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 V(Named) \ | 50 V(Named) \ |
| 51 V(CallHandler) \ | 51 V(CallHandler) \ |
| 52 V(ArgumentAdaptor) \ | 52 V(ArgumentAdaptor) \ |
| 53 V(ApiFunction) \ | 53 V(ApiFunction) \ |
| 54 V(ApiAccessor) \ | 54 V(ApiAccessor) \ |
| 55 V(ApiGetter) \ | 55 V(ApiGetter) \ |
| 56 V(ArgumentsAccessRead) \ | 56 V(ArgumentsAccessRead) \ |
| 57 V(StoreArrayLiteralElement) \ | 57 V(StoreArrayLiteralElement) \ |
| 58 V(MathPowTagged) \ | 58 V(MathPowTagged) \ |
| 59 V(MathPowInteger) \ | 59 V(MathPowInteger) \ |
| 60 V(ContextOnly) | 60 V(ContextOnly) \ |
| 61 V(GrowArrayElements) |
| 61 | 62 |
| 62 | 63 |
| 63 class CallInterfaceDescriptorData { | 64 class CallInterfaceDescriptorData { |
| 64 public: | 65 public: |
| 65 CallInterfaceDescriptorData() : register_param_count_(-1) {} | 66 CallInterfaceDescriptorData() : register_param_count_(-1) {} |
| 66 | 67 |
| 67 // A copy of the passed in registers and param_representations is made | 68 // A copy of the passed in registers and param_representations is made |
| 68 // and owned by the CallInterfaceDescriptorData. | 69 // and owned by the CallInterfaceDescriptorData. |
| 69 | 70 |
| 70 // TODO(mvstanton): Instead of taking parallel arrays register and | 71 // TODO(mvstanton): Instead of taking parallel arrays register and |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 | 519 |
| 519 static const Register exponent(); | 520 static const Register exponent(); |
| 520 }; | 521 }; |
| 521 | 522 |
| 522 | 523 |
| 523 class ContextOnlyDescriptor : public CallInterfaceDescriptor { | 524 class ContextOnlyDescriptor : public CallInterfaceDescriptor { |
| 524 public: | 525 public: |
| 525 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor) | 526 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor) |
| 526 }; | 527 }; |
| 527 | 528 |
| 529 |
| 530 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { |
| 531 public: |
| 532 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) |
| 533 |
| 534 enum RegisterInfo { kObjectIndex, kKeyIndex, kCapacityIndex }; |
| 535 static const Register ObjectRegister(); |
| 536 static const Register KeyRegister(); |
| 537 static const Register CapacityRegister(); |
| 538 }; |
| 539 |
| 528 #undef DECLARE_DESCRIPTOR | 540 #undef DECLARE_DESCRIPTOR |
| 529 | 541 |
| 530 | 542 |
| 531 // We define the association between CallDescriptors::Key and the specialized | 543 // We define the association between CallDescriptors::Key and the specialized |
| 532 // descriptor here to reduce boilerplate and mistakes. | 544 // descriptor here to reduce boilerplate and mistakes. |
| 533 #define DEF_KEY(name) \ | 545 #define DEF_KEY(name) \ |
| 534 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } | 546 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } |
| 535 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) | 547 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) |
| 536 #undef DEF_KEY | 548 #undef DEF_KEY |
| 537 } | 549 } |
| 538 } // namespace v8::internal | 550 } // namespace v8::internal |
| 539 | 551 |
| 540 | 552 |
| 541 #if V8_TARGET_ARCH_ARM64 | 553 #if V8_TARGET_ARCH_ARM64 |
| 542 #include "src/arm64/interface-descriptors-arm64.h" | 554 #include "src/arm64/interface-descriptors-arm64.h" |
| 543 #elif V8_TARGET_ARCH_ARM | 555 #elif V8_TARGET_ARCH_ARM |
| 544 #include "src/arm/interface-descriptors-arm.h" | 556 #include "src/arm/interface-descriptors-arm.h" |
| 545 #endif | 557 #endif |
| 546 | 558 |
| 547 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 559 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
| OLD | NEW |