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