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) \ |
41 V(RegExpConstructResult) \ | 42 V(RegExpConstructResult) \ |
42 V(TransitionElementsKind) \ | 43 V(TransitionElementsKind) \ |
43 V(AllocateHeapNumber) \ | 44 V(AllocateHeapNumber) \ |
44 V(ArrayConstructorConstantArgCount) \ | 45 V(ArrayConstructorConstantArgCount) \ |
45 V(ArrayConstructor) \ | 46 V(ArrayConstructor) \ |
46 V(InternalArrayConstructorConstantArgCount) \ | 47 V(InternalArrayConstructorConstantArgCount) \ |
47 V(InternalArrayConstructor) \ | 48 V(InternalArrayConstructor) \ |
48 V(Compare) \ | 49 V(Compare) \ |
49 V(CompareNil) \ | 50 V(CompareNil) \ |
50 V(ToBoolean) \ | 51 V(ToBoolean) \ |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 | 675 |
675 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { | 676 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { |
676 public: | 677 public: |
677 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) | 678 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) |
678 | 679 |
679 enum RegisterInfo { kObjectIndex, kKeyIndex }; | 680 enum RegisterInfo { kObjectIndex, kKeyIndex }; |
680 static const Register ObjectRegister(); | 681 static const Register ObjectRegister(); |
681 static const Register KeyRegister(); | 682 static const Register KeyRegister(); |
682 }; | 683 }; |
683 | 684 |
| 685 |
| 686 class PushArgsAndCallDescriptor : public CallInterfaceDescriptor { |
| 687 public: |
| 688 DECLARE_DESCRIPTOR(PushArgsAndCallDescriptor, CallInterfaceDescriptor) |
| 689 }; |
| 690 |
684 #undef DECLARE_DESCRIPTOR | 691 #undef DECLARE_DESCRIPTOR |
685 | 692 |
686 | 693 |
687 // We define the association between CallDescriptors::Key and the specialized | 694 // We define the association between CallDescriptors::Key and the specialized |
688 // descriptor here to reduce boilerplate and mistakes. | 695 // descriptor here to reduce boilerplate and mistakes. |
689 #define DEF_KEY(name) \ | 696 #define DEF_KEY(name) \ |
690 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } | 697 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } |
691 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) | 698 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) |
692 #undef DEF_KEY | 699 #undef DEF_KEY |
693 } | 700 } |
694 } // namespace v8::internal | 701 } // namespace v8::internal |
695 | 702 |
696 | 703 |
697 #if V8_TARGET_ARCH_ARM64 | 704 #if V8_TARGET_ARCH_ARM64 |
698 #include "src/arm64/interface-descriptors-arm64.h" | 705 #include "src/arm64/interface-descriptors-arm64.h" |
699 #elif V8_TARGET_ARCH_ARM | 706 #elif V8_TARGET_ARCH_ARM |
700 #include "src/arm/interface-descriptors-arm.h" | 707 #include "src/arm/interface-descriptors-arm.h" |
701 #endif | 708 #endif |
702 | 709 |
703 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 710 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |