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

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

Issue 2405253006: [builtins] implement Array.prototype[@@iterator] in TFJ builtins (Closed)
Patch Set: remove apparently redundant var bindings and fix other bugs 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 TFJ(SymbolPrototypeValueOf, 1) \ 669 TFJ(SymbolPrototypeValueOf, 1) \
662 \ 670 \
663 /* TypedArray */ \ 671 /* TypedArray */ \
664 CPP(TypedArrayPrototypeBuffer) \ 672 CPP(TypedArrayPrototypeBuffer) \
665 /* ES6 section 22.2.3.2 get %TypedArray%.prototype.byteLength */ \ 673 /* ES6 section 22.2.3.2 get %TypedArray%.prototype.byteLength */ \
666 TFJ(TypedArrayPrototypeByteLength, 1) \ 674 TFJ(TypedArrayPrototypeByteLength, 1) \
667 /* ES6 section 22.2.3.3 get %TypedArray%.prototype.byteOffset */ \ 675 /* ES6 section 22.2.3.3 get %TypedArray%.prototype.byteOffset */ \
668 TFJ(TypedArrayPrototypeByteOffset, 1) \ 676 TFJ(TypedArrayPrototypeByteOffset, 1) \
669 /* ES6 section 22.2.3.18 get %TypedArray%.prototype.length */ \ 677 /* ES6 section 22.2.3.18 get %TypedArray%.prototype.length */ \
670 TFJ(TypedArrayPrototypeLength, 1) \ 678 TFJ(TypedArrayPrototypeLength, 1) \
679 /* ES6 #sec-%typedarray%.prototype.entries */ \
680 TFJ(TypedArrayPrototypeEntries, 1) \
681 /* ES6 #sec-%typedarray%.prototype.keys */ \
682 TFJ(TypedArrayPrototypeKeys, 1) \
683 /* ES6 #sec-%typedarray%.prototype.values */ \
684 TFJ(TypedArrayPrototypeValues, 1) \
671 \ 685 \
672 CPP(ModuleNamespaceIterator) \ 686 CPP(ModuleNamespaceIterator) \
673 CPP(FixedArrayIteratorNext) 687 CPP(FixedArrayIteratorNext)
674 688
675 #define IGNORE_BUILTIN(...) 689 #define IGNORE_BUILTIN(...)
676 690
677 #define BUILTIN_LIST_ALL(V) BUILTIN_LIST(V, V, V, V, V, V, V) 691 #define BUILTIN_LIST_ALL(V) BUILTIN_LIST(V, V, V, V, V, V, V)
678 692
679 #define BUILTIN_LIST_C(V) \ 693 #define BUILTIN_LIST_C(V) \
680 BUILTIN_LIST(V, V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \ 694 BUILTIN_LIST(V, V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 827
814 friend class Isolate; 828 friend class Isolate;
815 829
816 DISALLOW_COPY_AND_ASSIGN(Builtins); 830 DISALLOW_COPY_AND_ASSIGN(Builtins);
817 }; 831 };
818 832
819 } // namespace internal 833 } // namespace internal
820 } // namespace v8 834 } // namespace v8
821 835
822 #endif // V8_BUILTINS_BUILTINS_H_ 836 #endif // V8_BUILTINS_BUILTINS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698