OLD | NEW |
1 // Copyright 2017 the V8 project authors. All rights reserved. | 1 // Copyright 2017 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_BUILTINS_BUILTINS_DEFINITIONS_H_ | 5 #ifndef V8_BUILTINS_BUILTINS_DEFINITIONS_H_ |
6 #define V8_BUILTINS_BUILTINS_DEFINITIONS_H_ | 6 #define V8_BUILTINS_BUILTINS_DEFINITIONS_H_ |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 /* ES6 section 9.4.1.1 [[Call]] ( thisArgument, argumentsList) */ \ | 68 /* ES6 section 9.4.1.1 [[Call]] ( thisArgument, argumentsList) */ \ |
69 ASM(CallBoundFunction) \ | 69 ASM(CallBoundFunction) \ |
70 ASM(TailCallBoundFunction) \ | 70 ASM(TailCallBoundFunction) \ |
71 /* ES6 section 7.3.12 Call(F, V, [argumentsList]) */ \ | 71 /* ES6 section 7.3.12 Call(F, V, [argumentsList]) */ \ |
72 ASM(Call_ReceiverIsNullOrUndefined) \ | 72 ASM(Call_ReceiverIsNullOrUndefined) \ |
73 ASM(Call_ReceiverIsNotNullOrUndefined) \ | 73 ASM(Call_ReceiverIsNotNullOrUndefined) \ |
74 ASM(Call_ReceiverIsAny) \ | 74 ASM(Call_ReceiverIsAny) \ |
75 ASM(TailCall_ReceiverIsNullOrUndefined) \ | 75 ASM(TailCall_ReceiverIsNullOrUndefined) \ |
76 ASM(TailCall_ReceiverIsNotNullOrUndefined) \ | 76 ASM(TailCall_ReceiverIsNotNullOrUndefined) \ |
77 ASM(TailCall_ReceiverIsAny) \ | 77 ASM(TailCall_ReceiverIsAny) \ |
| 78 ASM(CallVarargs) \ |
78 ASM(CallWithSpread) \ | 79 ASM(CallWithSpread) \ |
| 80 TFC(CallWithArrayLike, CallWithArrayLike, 1) \ |
79 ASM(CallForwardVarargs) \ | 81 ASM(CallForwardVarargs) \ |
80 ASM(CallFunctionForwardVarargs) \ | 82 ASM(CallFunctionForwardVarargs) \ |
81 \ | 83 \ |
82 /* Construct */ \ | 84 /* Construct */ \ |
83 /* ES6 section 9.2.2 [[Construct]] ( argumentsList, newTarget) */ \ | 85 /* ES6 section 9.2.2 [[Construct]] ( argumentsList, newTarget) */ \ |
84 ASM(ConstructFunction) \ | 86 ASM(ConstructFunction) \ |
85 /* ES6 section 9.4.1.2 [[Construct]] (argumentsList, newTarget) */ \ | 87 /* ES6 section 9.4.1.2 [[Construct]] (argumentsList, newTarget) */ \ |
86 ASM(ConstructBoundFunction) \ | 88 ASM(ConstructBoundFunction) \ |
87 ASM(ConstructedNonConstructable) \ | 89 ASM(ConstructedNonConstructable) \ |
88 /* ES6 section 9.5.14 [[Construct]] ( argumentsList, newTarget) */ \ | 90 /* ES6 section 9.5.14 [[Construct]] ( argumentsList, newTarget) */ \ |
89 ASM(ConstructProxy) \ | 91 ASM(ConstructProxy) \ |
90 /* ES6 section 7.3.13 Construct (F, [argumentsList], [newTarget]) */ \ | 92 /* ES6 section 7.3.13 Construct (F, [argumentsList], [newTarget]) */ \ |
91 ASM(Construct) \ | 93 ASM(Construct) \ |
| 94 ASM(ConstructVarargs) \ |
92 ASM(ConstructWithSpread) \ | 95 ASM(ConstructWithSpread) \ |
| 96 TFC(ConstructWithArrayLike, ConstructWithArrayLike, 1) \ |
93 ASM(ConstructForwardVarargs) \ | 97 ASM(ConstructForwardVarargs) \ |
94 ASM(ConstructFunctionForwardVarargs) \ | 98 ASM(ConstructFunctionForwardVarargs) \ |
95 ASM(JSConstructStubApi) \ | 99 ASM(JSConstructStubApi) \ |
96 ASM(JSConstructStubGenericRestrictedReturn) \ | 100 ASM(JSConstructStubGenericRestrictedReturn) \ |
97 ASM(JSConstructStubGenericUnrestrictedReturn) \ | 101 ASM(JSConstructStubGenericUnrestrictedReturn) \ |
98 ASM(JSBuiltinsConstructStub) \ | 102 ASM(JSBuiltinsConstructStub) \ |
99 TFC(FastNewClosure, FastNewClosure, 1) \ | 103 TFC(FastNewClosure, FastNewClosure, 1) \ |
100 TFC(FastNewFunctionContextEval, FastNewFunctionContext, 1) \ | 104 TFC(FastNewFunctionContextEval, FastNewFunctionContext, 1) \ |
101 TFC(FastNewFunctionContextFunction, FastNewFunctionContext, 1) \ | 105 TFC(FastNewFunctionContextFunction, FastNewFunctionContext, 1) \ |
102 TFC(FastNewStrictArguments, FastNewArguments, 1) \ | 106 TFC(FastNewStrictArguments, FastNewArguments, 1) \ |
103 TFC(FastNewSloppyArguments, FastNewArguments, 1) \ | 107 TFC(FastNewSloppyArguments, FastNewArguments, 1) \ |
104 TFC(FastNewRestParameter, FastNewArguments, 1) \ | 108 TFC(FastNewRestParameter, FastNewArguments, 1) \ |
105 TFC(FastCloneRegExp, FastCloneRegExp, 1) \ | 109 TFC(FastCloneRegExp, FastCloneRegExp, 1) \ |
106 TFC(FastCloneShallowArrayTrack, FastCloneShallowArray, 1) \ | 110 TFC(FastCloneShallowArrayTrack, FastCloneShallowArray, 1) \ |
107 TFC(FastCloneShallowArrayDontTrack, FastCloneShallowArray, 1) \ | 111 TFC(FastCloneShallowArrayDontTrack, FastCloneShallowArray, 1) \ |
108 TFC(FastCloneShallowObject, FastCloneShallowObject, 1) \ | 112 TFC(FastCloneShallowObject, FastCloneShallowObject, 1) \ |
109 \ | 113 \ |
110 /* Apply and entries */ \ | 114 /* Apply and entries */ \ |
111 ASM(Apply) \ | |
112 ASM(JSEntryTrampoline) \ | 115 ASM(JSEntryTrampoline) \ |
113 ASM(JSConstructEntryTrampoline) \ | 116 ASM(JSConstructEntryTrampoline) \ |
114 ASM(ResumeGeneratorTrampoline) \ | 117 ASM(ResumeGeneratorTrampoline) \ |
115 \ | 118 \ |
116 /* Stack and interrupt check */ \ | 119 /* Stack and interrupt check */ \ |
117 ASM(InterruptCheck) \ | 120 ASM(InterruptCheck) \ |
118 ASM(StackCheck) \ | 121 ASM(StackCheck) \ |
119 \ | 122 \ |
120 /* String helpers */ \ | 123 /* String helpers */ \ |
121 TFC(StringCharAt, StringCharAt, 1) \ | 124 TFC(StringCharAt, StringCharAt, 1) \ |
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 #define BUILTIN_LIST_TFS(V) \ | 1079 #define BUILTIN_LIST_TFS(V) \ |
1077 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \ | 1080 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \ |
1078 V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN) | 1081 V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN) |
1079 | 1082 |
1080 #define BUILTINS_WITH_UNTAGGED_PARAMS(V) V(WasmCompileLazy) | 1083 #define BUILTINS_WITH_UNTAGGED_PARAMS(V) V(WasmCompileLazy) |
1081 | 1084 |
1082 } // namespace internal | 1085 } // namespace internal |
1083 } // namespace v8 | 1086 } // namespace v8 |
1084 | 1087 |
1085 #endif // V8_BUILTINS_BUILTINS_DEFINITIONS_H_ | 1088 #endif // V8_BUILTINS_BUILTINS_DEFINITIONS_H_ |
OLD | NEW |