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 20 matching lines...) Expand all Loading... |
31 V(Typeof) \ | 31 V(Typeof) \ |
32 V(FastCloneShallowArray) \ | 32 V(FastCloneShallowArray) \ |
33 V(FastCloneShallowObject) \ | 33 V(FastCloneShallowObject) \ |
34 V(CreateAllocationSite) \ | 34 V(CreateAllocationSite) \ |
35 V(CreateWeakCell) \ | 35 V(CreateWeakCell) \ |
36 V(CallFunction) \ | 36 V(CallFunction) \ |
37 V(CallFunctionWithFeedback) \ | 37 V(CallFunctionWithFeedback) \ |
38 V(CallFunctionWithFeedbackAndVector) \ | 38 V(CallFunctionWithFeedbackAndVector) \ |
39 V(CallConstruct) \ | 39 V(CallConstruct) \ |
40 V(CallTrampoline) \ | 40 V(CallTrampoline) \ |
41 V(PushArgsAndCall) \ | |
42 V(RegExpConstructResult) \ | 41 V(RegExpConstructResult) \ |
43 V(TransitionElementsKind) \ | 42 V(TransitionElementsKind) \ |
44 V(AllocateHeapNumber) \ | 43 V(AllocateHeapNumber) \ |
45 V(ArrayConstructorConstantArgCount) \ | 44 V(ArrayConstructorConstantArgCount) \ |
46 V(ArrayConstructor) \ | 45 V(ArrayConstructor) \ |
47 V(InternalArrayConstructorConstantArgCount) \ | 46 V(InternalArrayConstructorConstantArgCount) \ |
48 V(InternalArrayConstructor) \ | 47 V(InternalArrayConstructor) \ |
49 V(Compare) \ | 48 V(Compare) \ |
50 V(CompareNil) \ | 49 V(CompareNil) \ |
51 V(ToBoolean) \ | 50 V(ToBoolean) \ |
(...skipping 11 matching lines...) Expand all Loading... |
63 V(ArgumentsAccessRead) \ | 62 V(ArgumentsAccessRead) \ |
64 V(ArgumentsAccessNew) \ | 63 V(ArgumentsAccessNew) \ |
65 V(StoreArrayLiteralElement) \ | 64 V(StoreArrayLiteralElement) \ |
66 V(LoadGlobalViaContext) \ | 65 V(LoadGlobalViaContext) \ |
67 V(StoreGlobalViaContext) \ | 66 V(StoreGlobalViaContext) \ |
68 V(MathPowTagged) \ | 67 V(MathPowTagged) \ |
69 V(MathPowInteger) \ | 68 V(MathPowInteger) \ |
70 V(ContextOnly) \ | 69 V(ContextOnly) \ |
71 V(GrowArrayElements) \ | 70 V(GrowArrayElements) \ |
72 V(MathRoundVariantCallFromUnoptimizedCode) \ | 71 V(MathRoundVariantCallFromUnoptimizedCode) \ |
73 V(MathRoundVariantCallFromOptimizedCode) | 72 V(MathRoundVariantCallFromOptimizedCode) \ |
| 73 V(InterpreterPushArgsAndCall) \ |
| 74 V(InterpreterCEntry) |
74 | 75 |
75 | 76 |
76 class CallInterfaceDescriptorData { | 77 class CallInterfaceDescriptorData { |
77 public: | 78 public: |
78 CallInterfaceDescriptorData() | 79 CallInterfaceDescriptorData() |
79 : register_param_count_(-1), function_type_(nullptr) {} | 80 : register_param_count_(-1), function_type_(nullptr) {} |
80 | 81 |
81 // A copy of the passed in registers and param_representations is made | 82 // A copy of the passed in registers and param_representations is made |
82 // and owned by the CallInterfaceDescriptorData. | 83 // and owned by the CallInterfaceDescriptorData. |
83 | 84 |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { | 700 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { |
700 public: | 701 public: |
701 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) | 702 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) |
702 | 703 |
703 enum RegisterInfo { kObjectIndex, kKeyIndex }; | 704 enum RegisterInfo { kObjectIndex, kKeyIndex }; |
704 static const Register ObjectRegister(); | 705 static const Register ObjectRegister(); |
705 static const Register KeyRegister(); | 706 static const Register KeyRegister(); |
706 }; | 707 }; |
707 | 708 |
708 | 709 |
709 class PushArgsAndCallDescriptor : public CallInterfaceDescriptor { | 710 class InterpreterPushArgsAndCallDescriptor : public CallInterfaceDescriptor { |
710 public: | 711 public: |
711 DECLARE_DESCRIPTOR(PushArgsAndCallDescriptor, CallInterfaceDescriptor) | 712 DECLARE_DESCRIPTOR(InterpreterPushArgsAndCallDescriptor, |
| 713 CallInterfaceDescriptor) |
712 }; | 714 }; |
713 | 715 |
| 716 |
| 717 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { |
| 718 public: |
| 719 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor) |
| 720 }; |
| 721 |
| 722 |
714 #undef DECLARE_DESCRIPTOR | 723 #undef DECLARE_DESCRIPTOR |
715 | 724 |
716 | 725 |
717 // We define the association between CallDescriptors::Key and the specialized | 726 // We define the association between CallDescriptors::Key and the specialized |
718 // descriptor here to reduce boilerplate and mistakes. | 727 // descriptor here to reduce boilerplate and mistakes. |
719 #define DEF_KEY(name) \ | 728 #define DEF_KEY(name) \ |
720 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } | 729 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } |
721 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) | 730 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) |
722 #undef DEF_KEY | 731 #undef DEF_KEY |
723 } // namespace internal | 732 } // namespace internal |
724 } // namespace v8 | 733 } // namespace v8 |
725 | 734 |
726 | 735 |
727 #if V8_TARGET_ARCH_ARM64 | 736 #if V8_TARGET_ARCH_ARM64 |
728 #include "src/arm64/interface-descriptors-arm64.h" | 737 #include "src/arm64/interface-descriptors-arm64.h" |
729 #elif V8_TARGET_ARCH_ARM | 738 #elif V8_TARGET_ARCH_ARM |
730 #include "src/arm/interface-descriptors-arm.h" | 739 #include "src/arm/interface-descriptors-arm.h" |
731 #endif | 740 #endif |
732 | 741 |
733 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 742 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |