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

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

Issue 2405253006: [builtins] implement Array.prototype[@@iterator] in TFJ builtins (Closed)
Patch Set: V1 Created 4 years, 2 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 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 TFJ(ArrayIsArray, 2) \ 217 TFJ(ArrayIsArray, 2) \
218 /* ES7 #sec-array.prototype.includes */ \ 218 /* ES7 #sec-array.prototype.includes */ \
219 TFJ(ArrayIncludes, 3) \ 219 TFJ(ArrayIncludes, 3) \
220 TFJ(ArrayIndexOf, 3) \ 220 TFJ(ArrayIndexOf, 3) \
221 CPP(ArrayPop) \ 221 CPP(ArrayPop) \
222 CPP(ArrayPush) \ 222 CPP(ArrayPush) \
223 CPP(ArrayShift) \ 223 CPP(ArrayShift) \
224 CPP(ArraySlice) \ 224 CPP(ArraySlice) \
225 CPP(ArraySplice) \ 225 CPP(ArraySplice) \
226 CPP(ArrayUnshift) \ 226 CPP(ArrayUnshift) \
227 /* ES6 #sec-array.prototype.entries */ \
228 TFJ(ArrayPrototypeEntries, 1) \
229 /* ES6 #sec-array.prototype.keys */ \
230 TFJ(ArrayPrototypeKeys, 1) \
231 /* ES6 #sec-array.prototype.values */ \
232 TFJ(ArrayPrototypeValues, 1) \
233 /* ES6 #sec-%arrayiteratorprototype%.next */ \
234 TFJ(ArrayIteratorPrototypeNext, 1) \
227 \ 235 \
228 /* ArrayBuffer */ \ 236 /* ArrayBuffer */ \
229 CPP(ArrayBufferConstructor) \ 237 CPP(ArrayBufferConstructor) \
230 CPP(ArrayBufferConstructor_ConstructStub) \ 238 CPP(ArrayBufferConstructor_ConstructStub) \
231 CPP(ArrayBufferPrototypeGetByteLength) \ 239 CPP(ArrayBufferPrototypeGetByteLength) \
232 CPP(ArrayBufferIsView) \ 240 CPP(ArrayBufferIsView) \
233 \ 241 \
234 /* Boolean */ \ 242 /* Boolean */ \
235 CPP(BooleanConstructor) \ 243 CPP(BooleanConstructor) \
236 CPP(BooleanConstructor_ConstructStub) \ 244 CPP(BooleanConstructor_ConstructStub) \
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 /* ES6 section 19.4.3.3 Symbol.prototype.valueOf ( ) */ \ 666 /* ES6 section 19.4.3.3 Symbol.prototype.valueOf ( ) */ \
659 TFJ(SymbolPrototypeValueOf, 1) \ 667 TFJ(SymbolPrototypeValueOf, 1) \
660 \ 668 \
661 /* TypedArray */ \ 669 /* TypedArray */ \
662 CPP(TypedArrayPrototypeBuffer) \ 670 CPP(TypedArrayPrototypeBuffer) \
663 /* ES6 section 22.2.3.2 get %TypedArray%.prototype.byteLength */ \ 671 /* ES6 section 22.2.3.2 get %TypedArray%.prototype.byteLength */ \
664 TFJ(TypedArrayPrototypeByteLength, 1) \ 672 TFJ(TypedArrayPrototypeByteLength, 1) \
665 /* ES6 section 22.2.3.3 get %TypedArray%.prototype.byteOffset */ \ 673 /* ES6 section 22.2.3.3 get %TypedArray%.prototype.byteOffset */ \
666 TFJ(TypedArrayPrototypeByteOffset, 1) \ 674 TFJ(TypedArrayPrototypeByteOffset, 1) \
667 /* ES6 section 22.2.3.18 get %TypedArray%.prototype.length */ \ 675 /* ES6 section 22.2.3.18 get %TypedArray%.prototype.length */ \
668 TFJ(TypedArrayPrototypeLength, 1) 676 TFJ(TypedArrayPrototypeLength, 1) \
677 /* ES6 #sec-%typedarray%.prototype.entries */ \
678 TFJ(TypedArrayPrototypeEntries, 1) \
679 /* ES6 #sec-%typedarray%.prototype.keys */ \
680 TFJ(TypedArrayPrototypeKeys, 1) \
681 /* ES6 #sec-%typedarray%.prototype.values */ \
682 TFJ(TypedArrayPrototypeValues, 1)
669 683
670 #define IGNORE_BUILTIN(...) 684 #define IGNORE_BUILTIN(...)
671 685
672 #define BUILTIN_LIST_ALL(V) BUILTIN_LIST(V, V, V, V, V, V, V) 686 #define BUILTIN_LIST_ALL(V) BUILTIN_LIST(V, V, V, V, V, V, V)
673 687
674 #define BUILTIN_LIST_C(V) \ 688 #define BUILTIN_LIST_C(V) \
675 BUILTIN_LIST(V, V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \ 689 BUILTIN_LIST(V, V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \
676 IGNORE_BUILTIN, IGNORE_BUILTIN) 690 IGNORE_BUILTIN, IGNORE_BUILTIN)
677 691
678 #define BUILTIN_LIST_A(V) \ 692 #define BUILTIN_LIST_A(V) \
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 822
809 friend class Isolate; 823 friend class Isolate;
810 824
811 DISALLOW_COPY_AND_ASSIGN(Builtins); 825 DISALLOW_COPY_AND_ASSIGN(Builtins);
812 }; 826 };
813 827
814 } // namespace internal 828 } // namespace internal
815 } // namespace v8 829 } // namespace v8
816 830
817 #endif // V8_BUILTINS_BUILTINS_H_ 831 #endif // V8_BUILTINS_BUILTINS_H_
OLDNEW
« src/bootstrapper.cc ('K') | « src/bootstrapper.cc ('k') | src/builtins/builtins-array.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698