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/handles.h" | 9 #include "src/handles.h" |
10 | 10 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 ASM(ArrayCode) \ | 216 ASM(ArrayCode) \ |
217 ASM(InternalArrayCode) \ | 217 ASM(InternalArrayCode) \ |
218 CPP(ArrayConcat) \ | 218 CPP(ArrayConcat) \ |
219 /* ES6 section 22.1.2.2 Array.isArray */ \ | 219 /* ES6 section 22.1.2.2 Array.isArray */ \ |
220 TFJ(ArrayIsArray, 1) \ | 220 TFJ(ArrayIsArray, 1) \ |
221 /* ES7 #sec-array.prototype.includes */ \ | 221 /* ES7 #sec-array.prototype.includes */ \ |
222 TFJ(ArrayIncludes, 2) \ | 222 TFJ(ArrayIncludes, 2) \ |
223 TFJ(ArrayIndexOf, 2) \ | 223 TFJ(ArrayIndexOf, 2) \ |
224 CPP(ArrayPop) \ | 224 CPP(ArrayPop) \ |
225 CPP(ArrayPush) \ | 225 CPP(ArrayPush) \ |
| 226 TFJ(FastArrayPush, -1) \ |
226 CPP(ArrayShift) \ | 227 CPP(ArrayShift) \ |
227 CPP(ArraySlice) \ | 228 CPP(ArraySlice) \ |
228 CPP(ArraySplice) \ | 229 CPP(ArraySplice) \ |
229 CPP(ArrayUnshift) \ | 230 CPP(ArrayUnshift) \ |
230 /* ES6 #sec-array.prototype.entries */ \ | 231 /* ES6 #sec-array.prototype.entries */ \ |
231 TFJ(ArrayPrototypeEntries, 0) \ | 232 TFJ(ArrayPrototypeEntries, 0) \ |
232 /* ES6 #sec-array.prototype.keys */ \ | 233 /* ES6 #sec-array.prototype.keys */ \ |
233 TFJ(ArrayPrototypeKeys, 0) \ | 234 TFJ(ArrayPrototypeKeys, 0) \ |
234 /* ES6 #sec-array.prototype.values */ \ | 235 /* ES6 #sec-array.prototype.values */ \ |
235 TFJ(ArrayPrototypeValues, 0) \ | 236 TFJ(ArrayPrototypeValues, 0) \ |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 | 841 |
841 friend class Isolate; | 842 friend class Isolate; |
842 | 843 |
843 DISALLOW_COPY_AND_ASSIGN(Builtins); | 844 DISALLOW_COPY_AND_ASSIGN(Builtins); |
844 }; | 845 }; |
845 | 846 |
846 } // namespace internal | 847 } // namespace internal |
847 } // namespace v8 | 848 } // namespace v8 |
848 | 849 |
849 #endif // V8_BUILTINS_BUILTINS_H_ | 850 #endif // V8_BUILTINS_BUILTINS_H_ |
OLD | NEW |