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 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 | 13 |
14 class PlatformInterfaceDescriptor; | 14 class PlatformInterfaceDescriptor; |
15 | 15 |
16 #define INTERFACE_DESCRIPTOR_LIST(V) \ | 16 #define INTERFACE_DESCRIPTOR_LIST(V) \ |
17 V(Void) \ | 17 V(Void) \ |
18 V(Load) \ | 18 V(Load) \ |
19 V(Store) \ | 19 V(Store) \ |
20 V(StoreTransition) \ | 20 V(StoreTransition) \ |
21 V(VectorStoreTransition) \ | 21 V(VectorStoreTransition) \ |
22 V(VectorStoreICTrampoline) \ | 22 V(VectorStoreICTrampoline) \ |
23 V(VectorStoreIC) \ | 23 V(VectorStoreIC) \ |
24 V(InstanceOf) \ | 24 V(InstanceOf) \ |
25 V(LoadWithVector) \ | 25 V(LoadWithVector) \ |
26 V(FastNewClosure) \ | 26 V(FastNewClosure) \ |
27 V(FastNewContext) \ | 27 V(FastNewContext) \ |
| 28 V(FastNewRestParameter) \ |
28 V(ToNumber) \ | 29 V(ToNumber) \ |
29 V(ToLength) \ | 30 V(ToLength) \ |
30 V(ToString) \ | 31 V(ToString) \ |
31 V(ToName) \ | 32 V(ToName) \ |
32 V(ToObject) \ | 33 V(ToObject) \ |
33 V(NumberToString) \ | 34 V(NumberToString) \ |
34 V(Typeof) \ | 35 V(Typeof) \ |
35 V(FastCloneRegExp) \ | 36 V(FastCloneRegExp) \ |
36 V(FastCloneShallowArray) \ | 37 V(FastCloneShallowArray) \ |
37 V(FastCloneShallowObject) \ | 38 V(FastCloneShallowObject) \ |
(...skipping 24 matching lines...) Expand all Loading... |
62 V(StringCompare) \ | 63 V(StringCompare) \ |
63 V(Keyed) \ | 64 V(Keyed) \ |
64 V(Named) \ | 65 V(Named) \ |
65 V(CallHandler) \ | 66 V(CallHandler) \ |
66 V(ArgumentAdaptor) \ | 67 V(ArgumentAdaptor) \ |
67 V(ApiFunction) \ | 68 V(ApiFunction) \ |
68 V(ApiAccessor) \ | 69 V(ApiAccessor) \ |
69 V(ApiGetter) \ | 70 V(ApiGetter) \ |
70 V(ArgumentsAccessRead) \ | 71 V(ArgumentsAccessRead) \ |
71 V(ArgumentsAccessNew) \ | 72 V(ArgumentsAccessNew) \ |
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 | 82 |
83 | |
84 class CallInterfaceDescriptorData { | 83 class CallInterfaceDescriptorData { |
85 public: | 84 public: |
86 CallInterfaceDescriptorData() | 85 CallInterfaceDescriptorData() |
87 : register_param_count_(-1), function_type_(nullptr) {} | 86 : register_param_count_(-1), function_type_(nullptr) {} |
88 | 87 |
89 // A copy of the passed in registers and param_representations is made | 88 // A copy of the passed in registers and param_representations is made |
90 // and owned by the CallInterfaceDescriptorData. | 89 // and owned by the CallInterfaceDescriptorData. |
91 | 90 |
92 void InitializePlatformIndependent(FunctionType* function_type) { | 91 void InitializePlatformIndependent(FunctionType* function_type) { |
93 function_type_ = function_type; | 92 function_type_ = function_type; |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 public: | 366 public: |
368 DECLARE_DESCRIPTOR(FastNewClosureDescriptor, CallInterfaceDescriptor) | 367 DECLARE_DESCRIPTOR(FastNewClosureDescriptor, CallInterfaceDescriptor) |
369 }; | 368 }; |
370 | 369 |
371 | 370 |
372 class FastNewContextDescriptor : public CallInterfaceDescriptor { | 371 class FastNewContextDescriptor : public CallInterfaceDescriptor { |
373 public: | 372 public: |
374 DECLARE_DESCRIPTOR(FastNewContextDescriptor, CallInterfaceDescriptor) | 373 DECLARE_DESCRIPTOR(FastNewContextDescriptor, CallInterfaceDescriptor) |
375 }; | 374 }; |
376 | 375 |
| 376 class FastNewRestParameterDescriptor : public CallInterfaceDescriptor { |
| 377 public: |
| 378 DECLARE_DESCRIPTOR(FastNewRestParameterDescriptor, CallInterfaceDescriptor) |
| 379 }; |
| 380 |
377 | 381 |
378 class ToNumberDescriptor : public CallInterfaceDescriptor { | 382 class ToNumberDescriptor : public CallInterfaceDescriptor { |
379 public: | 383 public: |
380 DECLARE_DESCRIPTOR(ToNumberDescriptor, CallInterfaceDescriptor) | 384 DECLARE_DESCRIPTOR(ToNumberDescriptor, CallInterfaceDescriptor) |
381 }; | 385 }; |
382 | 386 |
383 | 387 |
384 class ToLengthDescriptor : public CallInterfaceDescriptor { | 388 class ToLengthDescriptor : public CallInterfaceDescriptor { |
385 public: | 389 public: |
386 enum ParameterIndices { kReceiverIndex }; | 390 enum ParameterIndices { kReceiverIndex }; |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 public: | 714 public: |
711 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(ArgumentsAccessNewDescriptor, | 715 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(ArgumentsAccessNewDescriptor, |
712 CallInterfaceDescriptor) | 716 CallInterfaceDescriptor) |
713 | 717 |
714 static const Register function(); | 718 static const Register function(); |
715 static const Register parameter_count(); | 719 static const Register parameter_count(); |
716 static const Register parameter_pointer(); | 720 static const Register parameter_pointer(); |
717 }; | 721 }; |
718 | 722 |
719 | 723 |
720 class RestParamAccessDescriptor : public CallInterfaceDescriptor { | |
721 public: | |
722 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(RestParamAccessDescriptor, | |
723 CallInterfaceDescriptor) | |
724 static const Register parameter_count(); | |
725 static const Register parameter_pointer(); | |
726 static const Register rest_parameter_index(); | |
727 }; | |
728 | |
729 | |
730 class MathPowTaggedDescriptor : public CallInterfaceDescriptor { | 724 class MathPowTaggedDescriptor : public CallInterfaceDescriptor { |
731 public: | 725 public: |
732 DECLARE_DESCRIPTOR(MathPowTaggedDescriptor, CallInterfaceDescriptor) | 726 DECLARE_DESCRIPTOR(MathPowTaggedDescriptor, CallInterfaceDescriptor) |
733 | 727 |
734 static const Register exponent(); | 728 static const Register exponent(); |
735 }; | 729 }; |
736 | 730 |
737 | 731 |
738 class MathPowIntegerDescriptor : public CallInterfaceDescriptor { | 732 class MathPowIntegerDescriptor : public CallInterfaceDescriptor { |
739 public: | 733 public: |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 } // namespace v8 | 787 } // namespace v8 |
794 | 788 |
795 | 789 |
796 #if V8_TARGET_ARCH_ARM64 | 790 #if V8_TARGET_ARCH_ARM64 |
797 #include "src/arm64/interface-descriptors-arm64.h" | 791 #include "src/arm64/interface-descriptors-arm64.h" |
798 #elif V8_TARGET_ARCH_ARM | 792 #elif V8_TARGET_ARCH_ARM |
799 #include "src/arm/interface-descriptors-arm.h" | 793 #include "src/arm/interface-descriptors-arm.h" |
800 #endif | 794 #endif |
801 | 795 |
802 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 796 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |