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

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

Issue 2405253006: [builtins] implement Array.prototype[@@iterator] in TFJ builtins (Closed)
Patch Set: latest round 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
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins/builtins-array.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 TFJ(ArrayIsArray, 2) \ 216 TFJ(ArrayIsArray, 2) \
217 /* ES7 #sec-array.prototype.includes */ \ 217 /* ES7 #sec-array.prototype.includes */ \
218 TFJ(ArrayIncludes, 3) \ 218 TFJ(ArrayIncludes, 3) \
219 TFJ(ArrayIndexOf, 3) \ 219 TFJ(ArrayIndexOf, 3) \
220 CPP(ArrayPop) \ 220 CPP(ArrayPop) \
221 CPP(ArrayPush) \ 221 CPP(ArrayPush) \
222 CPP(ArrayShift) \ 222 CPP(ArrayShift) \
223 CPP(ArraySlice) \ 223 CPP(ArraySlice) \
224 CPP(ArraySplice) \ 224 CPP(ArraySplice) \
225 CPP(ArrayUnshift) \ 225 CPP(ArrayUnshift) \
226 /* ES6 #sec-array.prototype.entries */ \
227 TFJ(ArrayPrototypeEntries, 1) \
228 /* ES6 #sec-array.prototype.keys */ \
229 TFJ(ArrayPrototypeKeys, 1) \
230 /* ES6 #sec-array.prototype.values */ \
231 TFJ(ArrayPrototypeValues, 1) \
232 /* ES6 #sec-%arrayiteratorprototype%.next */ \
233 TFJ(ArrayIteratorPrototypeNext, 1) \
226 \ 234 \
227 /* ArrayBuffer */ \ 235 /* ArrayBuffer */ \
228 CPP(ArrayBufferConstructor) \ 236 CPP(ArrayBufferConstructor) \
229 CPP(ArrayBufferConstructor_ConstructStub) \ 237 CPP(ArrayBufferConstructor_ConstructStub) \
230 CPP(ArrayBufferPrototypeGetByteLength) \ 238 CPP(ArrayBufferPrototypeGetByteLength) \
231 CPP(ArrayBufferIsView) \ 239 CPP(ArrayBufferIsView) \
232 \ 240 \
233 /* Boolean */ \ 241 /* Boolean */ \
234 CPP(BooleanConstructor) \ 242 CPP(BooleanConstructor) \
235 CPP(BooleanConstructor_ConstructStub) \ 243 CPP(BooleanConstructor_ConstructStub) \
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 TFJ(SymbolPrototypeValueOf, 1) \ 671 TFJ(SymbolPrototypeValueOf, 1) \
664 \ 672 \
665 /* TypedArray */ \ 673 /* TypedArray */ \
666 CPP(TypedArrayPrototypeBuffer) \ 674 CPP(TypedArrayPrototypeBuffer) \
667 /* ES6 section 22.2.3.2 get %TypedArray%.prototype.byteLength */ \ 675 /* ES6 section 22.2.3.2 get %TypedArray%.prototype.byteLength */ \
668 TFJ(TypedArrayPrototypeByteLength, 1) \ 676 TFJ(TypedArrayPrototypeByteLength, 1) \
669 /* ES6 section 22.2.3.3 get %TypedArray%.prototype.byteOffset */ \ 677 /* ES6 section 22.2.3.3 get %TypedArray%.prototype.byteOffset */ \
670 TFJ(TypedArrayPrototypeByteOffset, 1) \ 678 TFJ(TypedArrayPrototypeByteOffset, 1) \
671 /* ES6 section 22.2.3.18 get %TypedArray%.prototype.length */ \ 679 /* ES6 section 22.2.3.18 get %TypedArray%.prototype.length */ \
672 TFJ(TypedArrayPrototypeLength, 1) \ 680 TFJ(TypedArrayPrototypeLength, 1) \
681 /* ES6 #sec-%typedarray%.prototype.entries */ \
682 TFJ(TypedArrayPrototypeEntries, 1) \
683 /* ES6 #sec-%typedarray%.prototype.keys */ \
684 TFJ(TypedArrayPrototypeKeys, 1) \
685 /* ES6 #sec-%typedarray%.prototype.values */ \
686 TFJ(TypedArrayPrototypeValues, 1) \
673 \ 687 \
674 CPP(ModuleNamespaceIterator) \ 688 CPP(ModuleNamespaceIterator) \
675 CPP(FixedArrayIteratorNext) 689 CPP(FixedArrayIteratorNext)
676 690
677 #define IGNORE_BUILTIN(...) 691 #define IGNORE_BUILTIN(...)
678 692
679 #define BUILTIN_LIST_ALL(V) BUILTIN_LIST(V, V, V, V, V, V, V) 693 #define BUILTIN_LIST_ALL(V) BUILTIN_LIST(V, V, V, V, V, V, V)
680 694
681 #define BUILTIN_LIST_C(V) \ 695 #define BUILTIN_LIST_C(V) \
682 BUILTIN_LIST(V, V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \ 696 BUILTIN_LIST(V, V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \
(...skipping 133 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-array.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698