Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: src/interface-descriptors.h

Issue 1987183002: [stubs] Convert Internal/ArraySingleArgumentsConstructor to a TurboFan stub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ia32/interface-descriptors-ia32.cc ('k') | src/interface-descriptors.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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(LoadWithVector) \ 24 V(LoadWithVector) \
25 V(FastArrayPush) \ 25 V(FastArrayPush) \
26 V(FastNewClosure) \ 26 V(FastNewClosure) \
27 V(FastNewContext) \ 27 V(FastNewContext) \
28 V(FastNewObject) \ 28 V(FastNewObject) \
29 V(FastNewRestParameter) \ 29 V(FastNewRestParameter) \
30 V(FastNewSloppyArguments) \ 30 V(FastNewSloppyArguments) \
31 V(FastNewStrictArguments) \ 31 V(FastNewStrictArguments) \
32 V(TypeConversion) \ 32 V(TypeConversion) \
33 V(Typeof) \ 33 V(Typeof) \
34 V(FastCloneRegExp) \ 34 V(FastCloneRegExp) \
35 V(FastCloneShallowArray) \ 35 V(FastCloneShallowArray) \
36 V(FastCloneShallowObject) \ 36 V(FastCloneShallowObject) \
37 V(CreateAllocationSite) \ 37 V(CreateAllocationSite) \
38 V(CreateWeakCell) \ 38 V(CreateWeakCell) \
39 V(CallFunction) \ 39 V(CallFunction) \
40 V(CallFunctionWithFeedback) \ 40 V(CallFunctionWithFeedback) \
41 V(CallFunctionWithFeedbackAndVector) \ 41 V(CallFunctionWithFeedbackAndVector) \
42 V(CallConstruct) \ 42 V(CallConstruct) \
43 V(CallTrampoline) \ 43 V(CallTrampoline) \
44 V(ConstructStub) \ 44 V(ConstructStub) \
45 V(ConstructTrampoline) \ 45 V(ConstructTrampoline) \
46 V(RegExpConstructResult) \ 46 V(RegExpConstructResult) \
47 V(TransitionElementsKind) \ 47 V(TransitionElementsKind) \
48 V(AllocateHeapNumber) \ 48 V(AllocateHeapNumber) \
49 V(AllocateFloat32x4) \ 49 V(AllocateFloat32x4) \
50 V(AllocateInt32x4) \ 50 V(AllocateInt32x4) \
51 V(AllocateUint32x4) \ 51 V(AllocateUint32x4) \
52 V(AllocateBool32x4) \ 52 V(AllocateBool32x4) \
53 V(AllocateInt16x8) \ 53 V(AllocateInt16x8) \
54 V(AllocateUint16x8) \ 54 V(AllocateUint16x8) \
55 V(AllocateBool16x8) \ 55 V(AllocateBool16x8) \
56 V(AllocateInt8x16) \ 56 V(AllocateInt8x16) \
57 V(AllocateUint8x16) \ 57 V(AllocateUint8x16) \
58 V(AllocateBool8x16) \ 58 V(AllocateBool8x16) \
59 V(ArrayNoArgumentConstructor) \ 59 V(ArrayNoArgumentConstructor) \
60 V(ArrayConstructorConstantArgCount) \ 60 V(ArraySingleArgumentConstructor) \
61 V(ArrayConstructor) \ 61 V(ArrayConstructor) \
62 V(InternalArrayConstructorConstantArgCount) \ 62 V(InternalArrayConstructor) \
63 V(InternalArrayConstructor) \ 63 V(Compare) \
64 V(Compare) \ 64 V(BinaryOp) \
65 V(BinaryOp) \ 65 V(BinaryOpWithAllocationSite) \
66 V(BinaryOpWithAllocationSite) \ 66 V(CountOp) \
67 V(CountOp) \ 67 V(StringAdd) \
68 V(StringAdd) \ 68 V(StringCompare) \
69 V(StringCompare) \ 69 V(Keyed) \
70 V(Keyed) \ 70 V(Named) \
71 V(Named) \ 71 V(HasProperty) \
72 V(HasProperty) \ 72 V(CallHandler) \
73 V(CallHandler) \ 73 V(ArgumentAdaptor) \
74 V(ArgumentAdaptor) \ 74 V(ApiCallbackWith0Args) \
75 V(ApiCallbackWith0Args) \ 75 V(ApiCallbackWith1Args) \
76 V(ApiCallbackWith1Args) \ 76 V(ApiCallbackWith2Args) \
77 V(ApiCallbackWith2Args) \ 77 V(ApiCallbackWith3Args) \
78 V(ApiCallbackWith3Args) \ 78 V(ApiCallbackWith4Args) \
79 V(ApiCallbackWith4Args) \ 79 V(ApiCallbackWith5Args) \
80 V(ApiCallbackWith5Args) \ 80 V(ApiCallbackWith6Args) \
81 V(ApiCallbackWith6Args) \ 81 V(ApiCallbackWith7Args) \
82 V(ApiCallbackWith7Args) \ 82 V(ApiGetter) \
83 V(ApiGetter) \ 83 V(LoadGlobalViaContext) \
84 V(LoadGlobalViaContext) \ 84 V(StoreGlobalViaContext) \
85 V(StoreGlobalViaContext) \ 85 V(MathPowTagged) \
86 V(MathPowTagged) \ 86 V(MathPowInteger) \
87 V(MathPowInteger) \ 87 V(ContextOnly) \
88 V(ContextOnly) \ 88 V(GrowArrayElements) \
89 V(GrowArrayElements) \ 89 V(InterpreterDispatch) \
90 V(InterpreterDispatch) \ 90 V(InterpreterPushArgsAndCall) \
91 V(InterpreterPushArgsAndCall) \ 91 V(InterpreterPushArgsAndConstruct) \
92 V(InterpreterPushArgsAndConstruct) \ 92 V(InterpreterCEntry) \
93 V(InterpreterCEntry) \
94 V(ResumeGenerator) 93 V(ResumeGenerator)
95 94
96 class CallInterfaceDescriptorData { 95 class CallInterfaceDescriptorData {
97 public: 96 public:
98 CallInterfaceDescriptorData() 97 CallInterfaceDescriptorData()
99 : register_param_count_(-1), function_type_(nullptr) {} 98 : register_param_count_(-1), function_type_(nullptr) {}
100 99
101 // A copy of the passed in registers and param_representations is made 100 // A copy of the passed in registers and param_representations is made
102 // and owned by the CallInterfaceDescriptorData. 101 // and owned by the CallInterfaceDescriptorData.
103 102
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 #undef SIMD128_ALLOC_DESC 570 #undef SIMD128_ALLOC_DESC
572 571
573 class ArrayNoArgumentConstructorDescriptor : public CallInterfaceDescriptor { 572 class ArrayNoArgumentConstructorDescriptor : public CallInterfaceDescriptor {
574 public: 573 public:
575 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE( 574 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(
576 ArrayNoArgumentConstructorDescriptor, CallInterfaceDescriptor) 575 ArrayNoArgumentConstructorDescriptor, CallInterfaceDescriptor)
577 enum ParameterIndices { 576 enum ParameterIndices {
578 kFunctionIndex, 577 kFunctionIndex,
579 kAllocationSiteIndex, 578 kAllocationSiteIndex,
580 kArgumentCountIndex, 579 kArgumentCountIndex,
580 kFunctionParameterIndex,
581 kContextIndex 581 kContextIndex
582 }; 582 };
583 }; 583 };
584 584
585 class ArrayConstructorConstantArgCountDescriptor 585 class ArraySingleArgumentConstructorDescriptor
586 : public CallInterfaceDescriptor { 586 : public CallInterfaceDescriptor {
587 public: 587 public:
588 DECLARE_DESCRIPTOR(ArrayConstructorConstantArgCountDescriptor, 588 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(
589 CallInterfaceDescriptor) 589 ArraySingleArgumentConstructorDescriptor, CallInterfaceDescriptor)
590 enum ParameterIndices {
591 kFunctionIndex,
592 kAllocationSiteIndex,
593 kArgumentsCountIndex,
594 kFunctionParameterIndex,
595 kArraySizeSmiParameterIndex,
596 kContextIndex
597 };
590 }; 598 };
591 599
592
593 class ArrayConstructorDescriptor : public CallInterfaceDescriptor { 600 class ArrayConstructorDescriptor : public CallInterfaceDescriptor {
594 public: 601 public:
595 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(ArrayConstructorDescriptor, 602 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(ArrayConstructorDescriptor,
596 CallInterfaceDescriptor) 603 CallInterfaceDescriptor)
597 }; 604 };
598 605
599 606
600 class InternalArrayConstructorConstantArgCountDescriptor
601 : public CallInterfaceDescriptor {
602 public:
603 DECLARE_DESCRIPTOR(InternalArrayConstructorConstantArgCountDescriptor,
604 CallInterfaceDescriptor)
605 };
606
607
608 class InternalArrayConstructorDescriptor : public CallInterfaceDescriptor { 607 class InternalArrayConstructorDescriptor : public CallInterfaceDescriptor {
609 public: 608 public:
610 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE( 609 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(
611 InternalArrayConstructorDescriptor, CallInterfaceDescriptor) 610 InternalArrayConstructorDescriptor, CallInterfaceDescriptor)
612 }; 611 };
613 612
614 613
615 class CompareDescriptor : public CallInterfaceDescriptor { 614 class CompareDescriptor : public CallInterfaceDescriptor {
616 public: 615 public:
617 DECLARE_DESCRIPTOR(CompareDescriptor, CallInterfaceDescriptor) 616 DECLARE_DESCRIPTOR(CompareDescriptor, CallInterfaceDescriptor)
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 } // namespace v8 843 } // namespace v8
845 844
846 845
847 #if V8_TARGET_ARCH_ARM64 846 #if V8_TARGET_ARCH_ARM64
848 #include "src/arm64/interface-descriptors-arm64.h" 847 #include "src/arm64/interface-descriptors-arm64.h"
849 #elif V8_TARGET_ARCH_ARM 848 #elif V8_TARGET_ARCH_ARM
850 #include "src/arm/interface-descriptors-arm.h" 849 #include "src/arm/interface-descriptors-arm.h"
851 #endif 850 #endif
852 851
853 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 852 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « src/ia32/interface-descriptors-ia32.cc ('k') | src/interface-descriptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698