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

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

Issue 2405253006: [builtins] implement Array.prototype[@@iterator] in TFJ builtins (Closed)
Patch Set: fix JSArrayIteratorVerify() 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 TFJ(SymbolPrototypeValueOf, 1) \ 672 TFJ(SymbolPrototypeValueOf, 1) \
665 \ 673 \
666 /* TypedArray */ \ 674 /* TypedArray */ \
667 CPP(TypedArrayPrototypeBuffer) \ 675 CPP(TypedArrayPrototypeBuffer) \
668 /* ES6 section 22.2.3.2 get %TypedArray%.prototype.byteLength */ \ 676 /* ES6 section 22.2.3.2 get %TypedArray%.prototype.byteLength */ \
669 TFJ(TypedArrayPrototypeByteLength, 1) \ 677 TFJ(TypedArrayPrototypeByteLength, 1) \
670 /* ES6 section 22.2.3.3 get %TypedArray%.prototype.byteOffset */ \ 678 /* ES6 section 22.2.3.3 get %TypedArray%.prototype.byteOffset */ \
671 TFJ(TypedArrayPrototypeByteOffset, 1) \ 679 TFJ(TypedArrayPrototypeByteOffset, 1) \
672 /* ES6 section 22.2.3.18 get %TypedArray%.prototype.length */ \ 680 /* ES6 section 22.2.3.18 get %TypedArray%.prototype.length */ \
673 TFJ(TypedArrayPrototypeLength, 1) \ 681 TFJ(TypedArrayPrototypeLength, 1) \
682 /* ES6 #sec-%typedarray%.prototype.entries */ \
683 TFJ(TypedArrayPrototypeEntries, 1) \
684 /* ES6 #sec-%typedarray%.prototype.keys */ \
685 TFJ(TypedArrayPrototypeKeys, 1) \
686 /* ES6 #sec-%typedarray%.prototype.values */ \
687 TFJ(TypedArrayPrototypeValues, 1) \
674 \ 688 \
675 CPP(ModuleNamespaceIterator) \ 689 CPP(ModuleNamespaceIterator) \
676 CPP(FixedArrayIteratorNext) 690 CPP(FixedArrayIteratorNext)
677 691
678 #define IGNORE_BUILTIN(...) 692 #define IGNORE_BUILTIN(...)
679 693
680 #define BUILTIN_LIST_ALL(V) BUILTIN_LIST(V, V, V, V, V, V, V) 694 #define BUILTIN_LIST_ALL(V) BUILTIN_LIST(V, V, V, V, V, V, V)
681 695
682 #define BUILTIN_LIST_C(V) \ 696 #define BUILTIN_LIST_C(V) \
683 BUILTIN_LIST(V, V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \ 697 BUILTIN_LIST(V, V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 830
817 friend class Isolate; 831 friend class Isolate;
818 832
819 DISALLOW_COPY_AND_ASSIGN(Builtins); 833 DISALLOW_COPY_AND_ASSIGN(Builtins);
820 }; 834 };
821 835
822 } // namespace internal 836 } // namespace internal
823 } // namespace v8 837 } // namespace v8
824 838
825 #endif // V8_BUILTINS_BUILTINS_H_ 839 #endif // V8_BUILTINS_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins/builtins.cc » ('j') | src/builtins/builtins.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698