OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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_H_ | 5 #ifndef V8_BUILTINS_BUILTINS_H_ |
6 #define V8_BUILTINS_BUILTINS_H_ | 6 #define V8_BUILTINS_BUILTINS_H_ |
7 | 7 |
8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 | 10 |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 TFJ(FastArrayPush, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \ | 278 TFJ(FastArrayPush, SharedFunctionInfo::kDontAdaptArgumentsSentinel) \ |
279 /* ES6 #sec-array.prototype.shift */ \ | 279 /* ES6 #sec-array.prototype.shift */ \ |
280 CPP(ArrayShift) \ | 280 CPP(ArrayShift) \ |
281 /* ES6 #sec-array.prototype.slice */ \ | 281 /* ES6 #sec-array.prototype.slice */ \ |
282 CPP(ArraySlice) \ | 282 CPP(ArraySlice) \ |
283 /* ES6 #sec-array.prototype.splice */ \ | 283 /* ES6 #sec-array.prototype.splice */ \ |
284 CPP(ArraySplice) \ | 284 CPP(ArraySplice) \ |
285 /* ES6 #sec-array.prototype.unshift */ \ | 285 /* ES6 #sec-array.prototype.unshift */ \ |
286 CPP(ArrayUnshift) \ | 286 CPP(ArrayUnshift) \ |
287 /* ES6 #sec-array.prototype.foreach */ \ | 287 /* ES6 #sec-array.prototype.foreach */ \ |
288 TFJ(ArrayForEachLoopContinuation, 6, kCallbackFn, kThisArg, kArray, kObject, \ | 288 TFJ(ArrayForEachLoopContinuation, 7, kCallbackFn, kThisArg, kArray, kObject, \ |
289 kInitialK, kLength) \ | 289 kInitialK, kLength, kTo) \ |
290 TFJ(ArrayForEach, 2, kCallbackFn, kThisArg) \ | 290 TFJ(ArrayForEach, 2, kCallbackFn, kThisArg) \ |
291 /* ES6 #sec-array.prototype.every */ \ | 291 /* ES6 #sec-array.prototype.every */ \ |
292 TFJ(ArrayEveryLoopContinuation, 6, kCallbackFn, kThisArg, kArray, kObject, \ | 292 TFJ(ArrayEveryLoopContinuation, 7, kCallbackFn, kThisArg, kArray, kObject, \ |
293 kInitialK, kLength) \ | 293 kInitialK, kLength, kTo) \ |
294 TFJ(ArrayEvery, 2, kCallbackFn, kThisArg) \ | 294 TFJ(ArrayEvery, 2, kCallbackFn, kThisArg) \ |
295 /* ES6 #sec-array.prototype.some */ \ | 295 /* ES6 #sec-array.prototype.some */ \ |
296 TFJ(ArraySomeLoopContinuation, 6, kCallbackFn, kThisArg, kArray, kObject, \ | 296 TFJ(ArraySomeLoopContinuation, 7, kCallbackFn, kThisArg, kArray, kObject, \ |
297 kInitialK, kLength) \ | 297 kInitialK, kLength, kTo) \ |
298 TFJ(ArraySome, 2, kCallbackFn, kThisArg) \ | 298 TFJ(ArraySome, 2, kCallbackFn, kThisArg) \ |
299 /* ES6 #sec-array.prototype.filter */ \ | 299 /* ES6 #sec-array.prototype.filter */ \ |
300 TFJ(ArrayFilterLoopContinuation, 6, kCallbackFn, kThisArg, kArray, kObject, \ | 300 TFJ(ArrayFilterLoopContinuation, 7, kCallbackFn, kThisArg, kArray, kObject, \ |
301 kInitialK, kLength) \ | 301 kInitialK, kLength, kTo) \ |
302 TFJ(ArrayFilter, 2, kCallbackFn, kThisArg) \ | 302 TFJ(ArrayFilter, 2, kCallbackFn, kThisArg) \ |
303 /* ES6 #sec-array.prototype.reduce */ \ | 303 /* ES6 #sec-array.prototype.reduce */ \ |
304 TFJ(ArrayReduceLoopContinuation, 6, kCallbackFn, kThisArg, kAccumulator, \ | 304 TFJ(ArrayReduceLoopContinuation, 7, kCallbackFn, kThisArg, kAccumulator, \ |
305 kObject, kInitialK, kLength) \ | 305 kObject, kInitialK, kLength, kTo) \ |
306 TFJ(ArrayReduce, 2, kCallbackFn, kInitialValue) \ | 306 TFJ(ArrayReduce, 2, kCallbackFn, kInitialValue) \ |
307 /* ES6 #sec-array.prototype.entries */ \ | 307 /* ES6 #sec-array.prototype.entries */ \ |
308 TFJ(ArrayPrototypeEntries, 0) \ | 308 TFJ(ArrayPrototypeEntries, 0) \ |
309 /* ES6 #sec-array.prototype.keys */ \ | 309 /* ES6 #sec-array.prototype.keys */ \ |
310 TFJ(ArrayPrototypeKeys, 0) \ | 310 TFJ(ArrayPrototypeKeys, 0) \ |
311 /* ES6 #sec-array.prototype.values */ \ | 311 /* ES6 #sec-array.prototype.values */ \ |
312 TFJ(ArrayPrototypeValues, 0) \ | 312 TFJ(ArrayPrototypeValues, 0) \ |
313 /* ES6 #sec-%arrayiteratorprototype%.next */ \ | 313 /* ES6 #sec-%arrayiteratorprototype%.next */ \ |
314 TFJ(ArrayIteratorPrototypeNext, 0) \ | 314 TFJ(ArrayIteratorPrototypeNext, 0) \ |
315 \ | 315 \ |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1099 | 1099 |
1100 friend class Isolate; | 1100 friend class Isolate; |
1101 | 1101 |
1102 DISALLOW_COPY_AND_ASSIGN(Builtins); | 1102 DISALLOW_COPY_AND_ASSIGN(Builtins); |
1103 }; | 1103 }; |
1104 | 1104 |
1105 } // namespace internal | 1105 } // namespace internal |
1106 } // namespace v8 | 1106 } // namespace v8 |
1107 | 1107 |
1108 #endif // V8_BUILTINS_BUILTINS_H_ | 1108 #endif // V8_BUILTINS_BUILTINS_H_ |
OLD | NEW |