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

Side by Side Diff: src/builtins/builtins-definitions.h

Issue 2829093004: [turbofan] Avoid going through ArgumentsAdaptorTrampoline for CSA/C++ builtins (Closed)
Patch Set: Fix typo Created 3 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
OLDNEW
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
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 TFJ(ArrayForEachLoopContinuation, 7, kCallbackFn, kThisArg, kArray, kObject, \ 272 TFS(ArrayForEachLoopContinuation, kReceiver, kCallbackFn, kThisArg, kArray, \
273 kInitialK, kLength, kTo) \ 273 kObject, kInitialK, kLength, kTo) \
274 TFJ(ArrayForEach, 2, kCallbackFn, kThisArg) \ 274 TFJ(ArrayForEach, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \
275 /* ES6 #sec-array.prototype.every */ \ 275 /* ES6 #sec-array.prototype.every */ \
276 TFJ(ArrayEveryLoopContinuation, 7, kCallbackFn, kThisArg, kArray, kObject, \ 276 TFS(ArrayEveryLoopContinuation, kReceiver, kCallbackFn, kThisArg, kArray, \
277 kInitialK, kLength, kTo) \ 277 kObject, kInitialK, kLength, kTo) \
278 TFJ(ArrayEvery, 2, kCallbackFn, kThisArg) \ 278 TFJ(ArrayEvery, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \
279 /* ES6 #sec-array.prototype.some */ \ 279 /* ES6 #sec-array.prototype.some */ \
280 TFJ(ArraySomeLoopContinuation, 7, kCallbackFn, kThisArg, kArray, kObject, \ 280 TFS(ArraySomeLoopContinuation, kReceiver, kCallbackFn, kThisArg, kArray, \
281 kInitialK, kLength, kTo) \ 281 kObject, kInitialK, kLength, kTo) \
282 TFJ(ArraySome, 2, kCallbackFn, kThisArg) \ 282 TFJ(ArraySome, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \
283 /* ES6 #sec-array.prototype.filter */ \ 283 /* ES6 #sec-array.prototype.filter */ \
284 TFJ(ArrayFilterLoopContinuation, 7, kCallbackFn, kThisArg, kArray, kObject, \ 284 TFS(ArrayFilterLoopContinuation, kReceiver, kCallbackFn, kThisArg, kArray, \
285 kInitialK, kLength, kTo) \ 285 kObject, kInitialK, kLength, kTo) \
286 TFJ(ArrayFilter, 2, kCallbackFn, kThisArg) \ 286 TFJ(ArrayFilter, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \
287 /* ES6 #sec-array.prototype.foreach */ \ 287 /* ES6 #sec-array.prototype.foreach */ \
288 TFJ(ArrayMapLoopContinuation, 7, kCallbackFn, kThisArg, kArray, kObject, \ 288 TFS(ArrayMapLoopContinuation, kReceiver, kCallbackFn, kThisArg, kArray, \
289 kInitialK, kLength, kTo) \ 289 kObject, kInitialK, kLength, kTo) \
290 TFJ(ArrayMap, 2, kCallbackFn, kThisArg) \ 290 TFJ(ArrayMap, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \
291 /* ES6 #sec-array.prototype.reduce */ \ 291 /* ES6 #sec-array.prototype.reduce */ \
292 TFJ(ArrayReduceLoopContinuation, 7, kCallbackFn, kThisArg, kAccumulator, \ 292 TFS(ArrayReduceLoopContinuation, kReceiver, kCallbackFn, kThisArg, \
293 kObject, kInitialK, kLength, kTo) \ 293 kAccumulator, kObject, kInitialK, kLength, kTo) \
294 TFJ(ArrayReduce, 2, kCallbackFn, kInitialValue) \ 294 TFJ(ArrayReduce, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \
295 /* ES6 #sec-array.prototype.reduceRight */ \ 295 /* ES6 #sec-array.prototype.reduceRight */ \
296 TFJ(ArrayReduceRightLoopContinuation, 7, kCallbackFn, kThisArg, \ 296 TFS(ArrayReduceRightLoopContinuation, kReceiver, kCallbackFn, kThisArg, \
297 kAccumulator, kObject, kInitialK, kLength, kTo) \ 297 kAccumulator, kObject, kInitialK, kLength, kTo) \
298 TFJ(ArrayReduceRight, 2, kCallbackFn, kInitialValue) \ 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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 CPP(TypedArrayPrototypeIncludes) \ 927 CPP(TypedArrayPrototypeIncludes) \
928 /* ES6 #sec-%typedarray%.prototype.indexof */ \ 928 /* ES6 #sec-%typedarray%.prototype.indexof */ \
929 CPP(TypedArrayPrototypeIndexOf) \ 929 CPP(TypedArrayPrototypeIndexOf) \
930 /* ES6 #sec-%typedarray%.prototype.lastindexof */ \ 930 /* ES6 #sec-%typedarray%.prototype.lastindexof */ \
931 CPP(TypedArrayPrototypeLastIndexOf) \ 931 CPP(TypedArrayPrototypeLastIndexOf) \
932 /* ES6 #sec-%typedarray%.prototype.reverse */ \ 932 /* ES6 #sec-%typedarray%.prototype.reverse */ \
933 CPP(TypedArrayPrototypeReverse) \ 933 CPP(TypedArrayPrototypeReverse) \
934 /* ES6 #sec-%typedarray%.prototype.slice */ \ 934 /* ES6 #sec-%typedarray%.prototype.slice */ \
935 CPP(TypedArrayPrototypeSlice) \ 935 CPP(TypedArrayPrototypeSlice) \
936 /* ES6 %TypedArray%.prototype.every */ \ 936 /* ES6 %TypedArray%.prototype.every */ \
937 TFJ(TypedArrayPrototypeEvery, 2, kCallbackFn, kThisArg) \ 937 TFJ(TypedArrayPrototypeEvery, \
938 SharedFunctionInfo::kDontAdaptArgumentsSentinel) \
938 /* ES6 %TypedArray%.prototype.some */ \ 939 /* ES6 %TypedArray%.prototype.some */ \
939 TFJ(TypedArrayPrototypeSome, 2, kCallbackFn, kThisArg) \ 940 TFJ(TypedArrayPrototypeSome, \
941 SharedFunctionInfo::kDontAdaptArgumentsSentinel) \
940 /* ES6 %TypedArray%.prototype.reduce */ \ 942 /* ES6 %TypedArray%.prototype.reduce */ \
941 TFJ(TypedArrayPrototypeReduce, 2, kCallbackFn, kInitialValue) \ 943 TFJ(TypedArrayPrototypeReduce, \
944 SharedFunctionInfo::kDontAdaptArgumentsSentinel) \
942 /* ES6 %TypedArray%.prototype.reduceRight */ \ 945 /* ES6 %TypedArray%.prototype.reduceRight */ \
943 TFJ(TypedArrayPrototypeReduceRight, 2, kCallbackFn, kInitialValue) \ 946 TFJ(TypedArrayPrototypeReduceRight, \
947 SharedFunctionInfo::kDontAdaptArgumentsSentinel) \
944 \ 948 \
945 /* Wasm */ \ 949 /* Wasm */ \
946 ASM(WasmCompileLazy) \ 950 ASM(WasmCompileLazy) \
947 TFC(WasmStackGuard, WasmRuntimeCall, 1) \ 951 TFC(WasmStackGuard, WasmRuntimeCall, 1) \
948 TFC(ThrowWasmTrapUnreachable, WasmRuntimeCall, 1) \ 952 TFC(ThrowWasmTrapUnreachable, WasmRuntimeCall, 1) \
949 TFC(ThrowWasmTrapMemOutOfBounds, WasmRuntimeCall, 1) \ 953 TFC(ThrowWasmTrapMemOutOfBounds, WasmRuntimeCall, 1) \
950 TFC(ThrowWasmTrapDivByZero, WasmRuntimeCall, 1) \ 954 TFC(ThrowWasmTrapDivByZero, WasmRuntimeCall, 1) \
951 TFC(ThrowWasmTrapDivUnrepresentable, WasmRuntimeCall, 1) \ 955 TFC(ThrowWasmTrapDivUnrepresentable, WasmRuntimeCall, 1) \
952 TFC(ThrowWasmTrapRemByZero, WasmRuntimeCall, 1) \ 956 TFC(ThrowWasmTrapRemByZero, WasmRuntimeCall, 1) \
953 TFC(ThrowWasmTrapFloatUnrepresentable, WasmRuntimeCall, 1) \ 957 TFC(ThrowWasmTrapFloatUnrepresentable, WasmRuntimeCall, 1) \
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 #define BUILTIN_LIST_TFS(V) \ 1059 #define BUILTIN_LIST_TFS(V) \
1056 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \ 1060 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \
1057 V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN) 1061 V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN)
1058 1062
1059 #define BUILTINS_WITH_UNTAGGED_PARAMS(V) V(WasmCompileLazy) 1063 #define BUILTINS_WITH_UNTAGGED_PARAMS(V) V(WasmCompileLazy)
1060 1064
1061 } // namespace internal 1065 } // namespace internal
1062 } // namespace v8 1066 } // namespace v8
1063 1067
1064 #endif // V8_BUILTINS_BUILTINS_DEFINITIONS_H_ 1068 #endif // V8_BUILTINS_BUILTINS_DEFINITIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698