| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 V(ArgumentsAccessNew) \ | 71 V(ArgumentsAccessNew) \ |
| 72 V(RestParamAccess) \ | 72 V(RestParamAccess) \ |
| 73 V(LoadGlobalViaContext) \ | 73 V(LoadGlobalViaContext) \ |
| 74 V(StoreGlobalViaContext) \ | 74 V(StoreGlobalViaContext) \ |
| 75 V(MathPowTagged) \ | 75 V(MathPowTagged) \ |
| 76 V(MathPowInteger) \ | 76 V(MathPowInteger) \ |
| 77 V(ContextOnly) \ | 77 V(ContextOnly) \ |
| 78 V(GrowArrayElements) \ | 78 V(GrowArrayElements) \ |
| 79 V(InterpreterPushArgsAndCall) \ | 79 V(InterpreterPushArgsAndCall) \ |
| 80 V(InterpreterPushArgsAndConstruct) \ | 80 V(InterpreterPushArgsAndConstruct) \ |
| 81 V(InterpreterCEntry) | 81 V(InterpreterCEntry) \ |
| 82 V(AtomicsLoad) \ |
| 83 V(Builtin) |
| 82 | 84 |
| 83 | 85 |
| 84 class CallInterfaceDescriptorData { | 86 class CallInterfaceDescriptorData { |
| 85 public: | 87 public: |
| 86 CallInterfaceDescriptorData() | 88 CallInterfaceDescriptorData() |
| 87 : register_param_count_(-1), function_type_(nullptr) {} | 89 : register_param_count_(-1), function_type_(nullptr) {} |
| 88 | 90 |
| 89 // A copy of the passed in registers and param_representations is made | 91 // A copy of the passed in registers and param_representations is made |
| 90 // and owned by the CallInterfaceDescriptorData. | 92 // and owned by the CallInterfaceDescriptorData. |
| 91 | 93 |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 CallInterfaceDescriptor) | 780 CallInterfaceDescriptor) |
| 779 }; | 781 }; |
| 780 | 782 |
| 781 | 783 |
| 782 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { | 784 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { |
| 783 public: | 785 public: |
| 784 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor) | 786 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor) |
| 785 }; | 787 }; |
| 786 | 788 |
| 787 | 789 |
| 790 class AtomicsLoadDescriptor : public CallInterfaceDescriptor { |
| 791 public: |
| 792 DECLARE_DESCRIPTOR(AtomicsLoadDescriptor, CallInterfaceDescriptor) |
| 793 }; |
| 794 |
| 795 |
| 796 class BuiltinDescriptor : public CallInterfaceDescriptor { |
| 797 public: |
| 798 DECLARE_DESCRIPTOR(BuiltinDescriptor, CallInterfaceDescriptor) |
| 799 }; |
| 800 |
| 788 #undef DECLARE_DESCRIPTOR | 801 #undef DECLARE_DESCRIPTOR |
| 789 | 802 |
| 790 | 803 |
| 791 // We define the association between CallDescriptors::Key and the specialized | 804 // We define the association between CallDescriptors::Key and the specialized |
| 792 // descriptor here to reduce boilerplate and mistakes. | 805 // descriptor here to reduce boilerplate and mistakes. |
| 793 #define DEF_KEY(name) \ | 806 #define DEF_KEY(name) \ |
| 794 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } | 807 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } |
| 795 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) | 808 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) |
| 796 #undef DEF_KEY | 809 #undef DEF_KEY |
| 797 } // namespace internal | 810 } // namespace internal |
| 798 } // namespace v8 | 811 } // namespace v8 |
| 799 | 812 |
| 800 | 813 |
| 801 #if V8_TARGET_ARCH_ARM64 | 814 #if V8_TARGET_ARCH_ARM64 |
| 802 #include "src/arm64/interface-descriptors-arm64.h" | 815 #include "src/arm64/interface-descriptors-arm64.h" |
| 803 #elif V8_TARGET_ARCH_ARM | 816 #elif V8_TARGET_ARCH_ARM |
| 804 #include "src/arm/interface-descriptors-arm.h" | 817 #include "src/arm/interface-descriptors-arm.h" |
| 805 #endif | 818 #endif |
| 806 | 819 |
| 807 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 820 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
| OLD | NEW |