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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 TFJ(FastArrayPush, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \ | 262 TFJ(FastArrayPush, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \ |
263 /* ES6 #sec-array.prototype.shift */ \ | 263 /* ES6 #sec-array.prototype.shift */ \ |
264 CPP(ArrayShift) \ | 264 CPP(ArrayShift) \ |
265 /* ES6 #sec-array.prototype.slice */ \ | 265 /* ES6 #sec-array.prototype.slice */ \ |
266 CPP(ArraySlice) \ | 266 CPP(ArraySlice) \ |
267 /* ES6 #sec-array.prototype.splice */ \ | 267 /* ES6 #sec-array.prototype.splice */ \ |
268 CPP(ArraySplice) \ | 268 CPP(ArraySplice) \ |
269 /* ES6 #sec-array.prototype.unshift */ \ | 269 /* ES6 #sec-array.prototype.unshift */ \ |
270 CPP(ArrayUnshift) \ | 270 CPP(ArrayUnshift) \ |
271 /* ES6 #sec-array.prototype.foreach */ \ | 271 /* ES6 #sec-array.prototype.foreach */ \ |
272 TFS(ArrayForEachLoopContinuation, kReceiver, kCallbackFn, kThisArg, kArray, \ | 272 TFJ(ArrayForEachLoopContinuation, 7, kCallbackFn, kThisArg, kArray, kObject, \ |
| 273 kInitialK, kLength, kTo) \ |
| 274 TFJ(ArrayForEach, 2, kCallbackFn, kThisArg) \ |
| 275 /* ES6 #sec-array.prototype.every */ \ |
| 276 TFJ(ArrayEveryLoopContinuation, 7, kCallbackFn, kThisArg, kArray, kObject, \ |
| 277 kInitialK, kLength, kTo) \ |
| 278 TFJ(ArrayEvery, 2, kCallbackFn, kThisArg) \ |
| 279 /* ES6 #sec-array.prototype.some */ \ |
| 280 TFJ(ArraySomeLoopContinuation, 7, kCallbackFn, kThisArg, kArray, kObject, \ |
| 281 kInitialK, kLength, kTo) \ |
| 282 TFJ(ArraySome, 2, kCallbackFn, kThisArg) \ |
| 283 /* ES6 #sec-array.prototype.filter */ \ |
| 284 TFJ(ArrayFilterLoopContinuation, 7, kCallbackFn, kThisArg, kArray, kObject, \ |
| 285 kInitialK, kLength, kTo) \ |
| 286 TFJ(ArrayFilter, 2, kCallbackFn, kThisArg) \ |
| 287 /* ES6 #sec-array.prototype.foreach */ \ |
| 288 TFJ(ArrayMapLoopContinuation, 7, kCallbackFn, kThisArg, kArray, kObject, \ |
| 289 kInitialK, kLength, kTo) \ |
| 290 TFJ(ArrayMap, 2, kCallbackFn, kThisArg) \ |
| 291 /* ES6 #sec-array.prototype.reduce */ \ |
| 292 TFJ(ArrayReduceLoopContinuation, 7, kCallbackFn, kThisArg, kAccumulator, \ |
273 kObject, kInitialK, kLength, kTo) \ | 293 kObject, kInitialK, kLength, kTo) \ |
274 TFJ(ArrayForEach, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \ | 294 TFJ(ArrayReduce, 2, kCallbackFn, kInitialValue) \ |
275 /* ES6 #sec-array.prototype.every */ \ | 295 /* ES6 #sec-array.prototype.reduceRight */ \ |
276 TFS(ArrayEveryLoopContinuation, kReceiver, kCallbackFn, kThisArg, kArray, \ | 296 TFJ(ArrayReduceRightLoopContinuation, 7, kCallbackFn, kThisArg, \ |
277 kObject, kInitialK, kLength, kTo) \ | |
278 TFJ(ArrayEvery, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \ | |
279 /* ES6 #sec-array.prototype.some */ \ | |
280 TFS(ArraySomeLoopContinuation, kReceiver, kCallbackFn, kThisArg, kArray, \ | |
281 kObject, kInitialK, kLength, kTo) \ | |
282 TFJ(ArraySome, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \ | |
283 /* ES6 #sec-array.prototype.filter */ \ | |
284 TFS(ArrayFilterLoopContinuation, kReceiver, kCallbackFn, kThisArg, kArray, \ | |
285 kObject, kInitialK, kLength, kTo) \ | |
286 TFJ(ArrayFilter, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \ | |
287 /* ES6 #sec-array.prototype.foreach */ \ | |
288 TFS(ArrayMapLoopContinuation, kReceiver, kCallbackFn, kThisArg, kArray, \ | |
289 kObject, kInitialK, kLength, kTo) \ | |
290 TFJ(ArrayMap, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \ | |
291 /* ES6 #sec-array.prototype.reduce */ \ | |
292 TFS(ArrayReduceLoopContinuation, kReceiver, kCallbackFn, kThisArg, \ | |
293 kAccumulator, kObject, kInitialK, kLength, kTo) \ | 297 kAccumulator, kObject, kInitialK, kLength, kTo) \ |
294 TFJ(ArrayReduce, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \ | 298 TFJ(ArrayReduceRight, 2, kCallbackFn, kInitialValue) \ |
295 /* ES6 #sec-array.prototype.reduceRight */ \ | |
296 TFS(ArrayReduceRightLoopContinuation, kReceiver, kCallbackFn, kThisArg, \ | |
297 kAccumulator, kObject, kInitialK, kLength, kTo) \ | |
298 TFJ(ArrayReduceRight, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \ | |
299 /* ES6 #sec-array.prototype.entries */ \ | 299 /* ES6 #sec-array.prototype.entries */ \ |
300 TFJ(ArrayPrototypeEntries, 0) \ | 300 TFJ(ArrayPrototypeEntries, 0) \ |
301 /* ES6 #sec-array.prototype.keys */ \ | 301 /* ES6 #sec-array.prototype.keys */ \ |
302 TFJ(ArrayPrototypeKeys, 0) \ | 302 TFJ(ArrayPrototypeKeys, 0) \ |
303 /* ES6 #sec-array.prototype.values */ \ | 303 /* ES6 #sec-array.prototype.values */ \ |
304 TFJ(ArrayPrototypeValues, 0) \ | 304 TFJ(ArrayPrototypeValues, 0) \ |
305 /* ES6 #sec-%arrayiteratorprototype%.next */ \ | 305 /* ES6 #sec-%arrayiteratorprototype%.next */ \ |
306 TFJ(ArrayIteratorPrototypeNext, 0) \ | 306 TFJ(ArrayIteratorPrototypeNext, 0) \ |
307 \ | 307 \ |
308 /* ArrayBuffer */ \ | 308 /* ArrayBuffer */ \ |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 CPP(TypedArrayPrototypeIncludes) \ | 928 CPP(TypedArrayPrototypeIncludes) \ |
929 /* ES6 #sec-%typedarray%.prototype.indexof */ \ | 929 /* ES6 #sec-%typedarray%.prototype.indexof */ \ |
930 CPP(TypedArrayPrototypeIndexOf) \ | 930 CPP(TypedArrayPrototypeIndexOf) \ |
931 /* ES6 #sec-%typedarray%.prototype.lastindexof */ \ | 931 /* ES6 #sec-%typedarray%.prototype.lastindexof */ \ |
932 CPP(TypedArrayPrototypeLastIndexOf) \ | 932 CPP(TypedArrayPrototypeLastIndexOf) \ |
933 /* ES6 #sec-%typedarray%.prototype.reverse */ \ | 933 /* ES6 #sec-%typedarray%.prototype.reverse */ \ |
934 CPP(TypedArrayPrototypeReverse) \ | 934 CPP(TypedArrayPrototypeReverse) \ |
935 /* ES6 #sec-%typedarray%.prototype.slice */ \ | 935 /* ES6 #sec-%typedarray%.prototype.slice */ \ |
936 CPP(TypedArrayPrototypeSlice) \ | 936 CPP(TypedArrayPrototypeSlice) \ |
937 /* ES6 %TypedArray%.prototype.every */ \ | 937 /* ES6 %TypedArray%.prototype.every */ \ |
938 TFJ(TypedArrayPrototypeEvery, \ | 938 TFJ(TypedArrayPrototypeEvery, 2, kCallbackFn, kThisArg) \ |
939 SharedFunctionInfo::kDontAdaptArgumentsSentinel) \ | |
940 /* ES6 %TypedArray%.prototype.some */ \ | 939 /* ES6 %TypedArray%.prototype.some */ \ |
941 TFJ(TypedArrayPrototypeSome, \ | 940 TFJ(TypedArrayPrototypeSome, 2, kCallbackFn, kThisArg) \ |
942 SharedFunctionInfo::kDontAdaptArgumentsSentinel) \ | |
943 /* ES6 %TypedArray%.prototype.reduce */ \ | 941 /* ES6 %TypedArray%.prototype.reduce */ \ |
944 TFJ(TypedArrayPrototypeReduce, \ | 942 TFJ(TypedArrayPrototypeReduce, 2, kCallbackFn, kInitialValue) \ |
945 SharedFunctionInfo::kDontAdaptArgumentsSentinel) \ | |
946 /* ES6 %TypedArray%.prototype.reduceRight */ \ | 943 /* ES6 %TypedArray%.prototype.reduceRight */ \ |
947 TFJ(TypedArrayPrototypeReduceRight, \ | 944 TFJ(TypedArrayPrototypeReduceRight, 2, kCallbackFn, kInitialValue) \ |
948 SharedFunctionInfo::kDontAdaptArgumentsSentinel) \ | |
949 \ | 945 \ |
950 /* Wasm */ \ | 946 /* Wasm */ \ |
951 ASM(WasmCompileLazy) \ | 947 ASM(WasmCompileLazy) \ |
952 TFC(WasmStackGuard, WasmRuntimeCall, 1) \ | 948 TFC(WasmStackGuard, WasmRuntimeCall, 1) \ |
953 TFC(ThrowWasmTrapUnreachable, WasmRuntimeCall, 1) \ | 949 TFC(ThrowWasmTrapUnreachable, WasmRuntimeCall, 1) \ |
954 TFC(ThrowWasmTrapMemOutOfBounds, WasmRuntimeCall, 1) \ | 950 TFC(ThrowWasmTrapMemOutOfBounds, WasmRuntimeCall, 1) \ |
955 TFC(ThrowWasmTrapDivByZero, WasmRuntimeCall, 1) \ | 951 TFC(ThrowWasmTrapDivByZero, WasmRuntimeCall, 1) \ |
956 TFC(ThrowWasmTrapDivUnrepresentable, WasmRuntimeCall, 1) \ | 952 TFC(ThrowWasmTrapDivUnrepresentable, WasmRuntimeCall, 1) \ |
957 TFC(ThrowWasmTrapRemByZero, WasmRuntimeCall, 1) \ | 953 TFC(ThrowWasmTrapRemByZero, WasmRuntimeCall, 1) \ |
958 TFC(ThrowWasmTrapFloatUnrepresentable, WasmRuntimeCall, 1) \ | 954 TFC(ThrowWasmTrapFloatUnrepresentable, WasmRuntimeCall, 1) \ |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 #define BUILTIN_LIST_TFS(V) \ | 1051 #define BUILTIN_LIST_TFS(V) \ |
1056 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \ | 1052 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \ |
1057 V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN) | 1053 V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN) |
1058 | 1054 |
1059 #define BUILTINS_WITH_UNTAGGED_PARAMS(V) V(WasmCompileLazy) | 1055 #define BUILTINS_WITH_UNTAGGED_PARAMS(V) V(WasmCompileLazy) |
1060 | 1056 |
1061 } // namespace internal | 1057 } // namespace internal |
1062 } // namespace v8 | 1058 } // namespace v8 |
1063 | 1059 |
1064 #endif // V8_BUILTINS_BUILTINS_DEFINITIONS_H_ | 1060 #endif // V8_BUILTINS_BUILTINS_DEFINITIONS_H_ |
OLD | NEW |