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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
172 TFS(NonPrimitiveToPrimitive_String, BUILTIN, kNoExtraICState, \ | 172 TFS(NonPrimitiveToPrimitive_String, BUILTIN, kNoExtraICState, \ |
173 TypeConversion) \ | 173 TypeConversion) \ |
174 TFS(StringToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ | 174 TFS(StringToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ |
175 TFS(ToName, BUILTIN, kNoExtraICState, TypeConversion) \ | 175 TFS(ToName, BUILTIN, kNoExtraICState, TypeConversion) \ |
176 TFS(NonNumberToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ | 176 TFS(NonNumberToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ |
177 TFS(ToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ | 177 TFS(ToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ |
178 TFS(ToString, BUILTIN, kNoExtraICState, TypeConversion) \ | 178 TFS(ToString, BUILTIN, kNoExtraICState, TypeConversion) \ |
179 TFS(ToInteger, BUILTIN, kNoExtraICState, TypeConversion) \ | 179 TFS(ToInteger, BUILTIN, kNoExtraICState, TypeConversion) \ |
180 TFS(ToLength, BUILTIN, kNoExtraICState, TypeConversion) \ | 180 TFS(ToLength, BUILTIN, kNoExtraICState, TypeConversion) \ |
181 TFS(Typeof, BUILTIN, kNoExtraICState, Typeof) \ | 181 TFS(Typeof, BUILTIN, kNoExtraICState, Typeof) \ |
182 TFS(GetSuperConstructor, BUILTIN, kNoExtraICState, TypeConversion) \ | |
182 \ | 183 \ |
183 /* Handlers */ \ | 184 /* Handlers */ \ |
184 TFS(KeyedLoadIC_Megamorphic_TF, KEYED_LOAD_IC, kNoExtraICState, \ | 185 TFS(KeyedLoadIC_Megamorphic_TF, KEYED_LOAD_IC, kNoExtraICState, \ |
185 LoadWithVector) \ | 186 LoadWithVector) \ |
186 ASM(KeyedLoadIC_Miss) \ | 187 ASM(KeyedLoadIC_Miss) \ |
187 ASH(KeyedLoadIC_Slow, HANDLER, Code::KEYED_LOAD_IC) \ | 188 ASH(KeyedLoadIC_Slow, HANDLER, Code::KEYED_LOAD_IC) \ |
188 TFS(KeyedStoreIC_Megamorphic_TF, KEYED_STORE_IC, kNoExtraICState, \ | 189 TFS(KeyedStoreIC_Megamorphic_TF, KEYED_STORE_IC, kNoExtraICState, \ |
189 StoreWithVector) \ | 190 StoreWithVector) \ |
190 TFS(KeyedStoreIC_Megamorphic_Strict_TF, KEYED_STORE_IC, \ | 191 TFS(KeyedStoreIC_Megamorphic_Strict_TF, KEYED_STORE_IC, \ |
191 StoreICState::kStrictModeState, StoreWithVector) \ | 192 StoreICState::kStrictModeState, StoreWithVector) \ |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
703 TFJ(TypedArrayPrototypeByteLength, 0) \ | 704 TFJ(TypedArrayPrototypeByteLength, 0) \ |
704 /* ES6 section 22.2.3.3 get %TypedArray%.prototype.byteOffset */ \ | 705 /* ES6 section 22.2.3.3 get %TypedArray%.prototype.byteOffset */ \ |
705 TFJ(TypedArrayPrototypeByteOffset, 0) \ | 706 TFJ(TypedArrayPrototypeByteOffset, 0) \ |
706 /* ES6 section 22.2.3.18 get %TypedArray%.prototype.length */ \ | 707 /* ES6 section 22.2.3.18 get %TypedArray%.prototype.length */ \ |
707 TFJ(TypedArrayPrototypeLength, 0) \ | 708 TFJ(TypedArrayPrototypeLength, 0) \ |
708 /* ES6 #sec-%typedarray%.prototype.entries */ \ | 709 /* ES6 #sec-%typedarray%.prototype.entries */ \ |
709 TFJ(TypedArrayPrototypeEntries, 0) \ | 710 TFJ(TypedArrayPrototypeEntries, 0) \ |
710 /* ES6 #sec-%typedarray%.prototype.keys */ \ | 711 /* ES6 #sec-%typedarray%.prototype.keys */ \ |
711 TFJ(TypedArrayPrototypeKeys, 0) \ | 712 TFJ(TypedArrayPrototypeKeys, 0) \ |
712 /* ES6 #sec-%typedarray%.prototype.values */ \ | 713 /* ES6 #sec-%typedarray%.prototype.values */ \ |
713 TFJ(TypedArrayPrototypeValues, 0) \ | 714 TFJ(TypedArrayPrototypeValues, 0) |
Henrique Ferreiro
2016/12/16 11:47:25
This change was made by git cl format.
| |
714 | 715 |
715 #define IGNORE_BUILTIN(...) | 716 #define IGNORE_BUILTIN(...) |
716 | 717 |
717 #define BUILTIN_LIST_ALL(V) BUILTIN_LIST(V, V, V, V, V, V, V) | 718 #define BUILTIN_LIST_ALL(V) BUILTIN_LIST(V, V, V, V, V, V, V) |
718 | 719 |
719 #define BUILTIN_LIST_C(V) \ | 720 #define BUILTIN_LIST_C(V) \ |
720 BUILTIN_LIST(V, V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \ | 721 BUILTIN_LIST(V, V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \ |
721 IGNORE_BUILTIN, IGNORE_BUILTIN) | 722 IGNORE_BUILTIN, IGNORE_BUILTIN) |
722 | 723 |
723 #define BUILTIN_LIST_A(V) \ | 724 #define BUILTIN_LIST_A(V) \ |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
853 | 854 |
854 friend class Isolate; | 855 friend class Isolate; |
855 | 856 |
856 DISALLOW_COPY_AND_ASSIGN(Builtins); | 857 DISALLOW_COPY_AND_ASSIGN(Builtins); |
857 }; | 858 }; |
858 | 859 |
859 } // namespace internal | 860 } // namespace internal |
860 } // namespace v8 | 861 } // namespace v8 |
861 | 862 |
862 #endif // V8_BUILTINS_BUILTINS_H_ | 863 #endif // V8_BUILTINS_BUILTINS_H_ |
OLD | NEW |