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/globals.h" | 9 #include "src/globals.h" |
10 | 10 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 TFS(NonNumberToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ | 217 TFS(NonNumberToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ |
218 TFS(ToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ | 218 TFS(ToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ |
219 TFS(ToString, BUILTIN, kNoExtraICState, TypeConversion) \ | 219 TFS(ToString, BUILTIN, kNoExtraICState, TypeConversion) \ |
220 TFS(ToInteger, BUILTIN, kNoExtraICState, TypeConversion) \ | 220 TFS(ToInteger, BUILTIN, kNoExtraICState, TypeConversion) \ |
221 TFS(ToLength, BUILTIN, kNoExtraICState, TypeConversion) \ | 221 TFS(ToLength, BUILTIN, kNoExtraICState, TypeConversion) \ |
222 TFS(ClassOf, BUILTIN, kNoExtraICState, Typeof) \ | 222 TFS(ClassOf, BUILTIN, kNoExtraICState, Typeof) \ |
223 TFS(Typeof, BUILTIN, kNoExtraICState, Typeof) \ | 223 TFS(Typeof, BUILTIN, kNoExtraICState, Typeof) \ |
224 TFS(GetSuperConstructor, BUILTIN, kNoExtraICState, TypeConversion) \ | 224 TFS(GetSuperConstructor, BUILTIN, kNoExtraICState, TypeConversion) \ |
225 \ | 225 \ |
226 /* Handlers */ \ | 226 /* Handlers */ \ |
227 TFS(LoadICProtoArray, HANDLER, Code::LOAD_IC, LoadICProtoArray) \ | 227 TFS(LoadICProtoArray, BUILTIN, kNoExtraICState, LoadICProtoArray) \ |
228 TFS(LoadICProtoArrayThrowIfNonexistent, HANDLER, Code::LOAD_IC, \ | 228 TFS(LoadICProtoArrayThrowIfNonexistent, BUILTIN, kNoExtraICState, \ |
229 LoadICProtoArray) \ | 229 LoadICProtoArray) \ |
230 TFS(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, kNoExtraICState, LoadWithVector) \ | 230 TFS(KeyedLoadIC_Megamorphic, BUILTIN, kNoExtraICState, LoadWithVector) \ |
231 TFS(KeyedLoadIC_Miss, BUILTIN, kNoExtraICState, LoadWithVector) \ | 231 TFS(KeyedLoadIC_Miss, BUILTIN, kNoExtraICState, LoadWithVector) \ |
232 TFS(KeyedLoadIC_Slow, HANDLER, Code::KEYED_LOAD_IC, LoadWithVector) \ | 232 TFS(KeyedLoadIC_Slow, HANDLER, Code::LOAD_IC, LoadWithVector) \ |
233 TFS(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, kNoExtraICState, \ | 233 TFS(KeyedStoreIC_Megamorphic, BUILTIN, kNoExtraICState, StoreWithVector) \ |
234 StoreWithVector) \ | 234 TFS(KeyedStoreIC_Megamorphic_Strict, BUILTIN, kNoExtraICState, \ |
235 TFS(KeyedStoreIC_Megamorphic_Strict, KEYED_STORE_IC, kNoExtraICState, \ | |
236 StoreWithVector) \ | 235 StoreWithVector) \ |
237 TFS(KeyedStoreIC_Miss, BUILTIN, kNoExtraICState, StoreWithVector) \ | 236 TFS(KeyedStoreIC_Miss, BUILTIN, kNoExtraICState, StoreWithVector) \ |
238 TFS(KeyedStoreIC_Slow, HANDLER, Code::KEYED_STORE_IC, StoreWithVector) \ | 237 TFS(KeyedStoreIC_Slow, HANDLER, Code::STORE_IC, StoreWithVector) \ |
239 TFS(LoadGlobalIC_Miss, BUILTIN, kNoExtraICState, LoadGlobalWithVector) \ | 238 TFS(LoadGlobalIC_Miss, BUILTIN, kNoExtraICState, LoadGlobalWithVector) \ |
240 TFS(LoadGlobalIC_Slow, HANDLER, Code::LOAD_GLOBAL_IC, LoadGlobalWithVector) \ | 239 TFS(LoadGlobalIC_Slow, HANDLER, Code::LOAD_GLOBAL_IC, LoadGlobalWithVector) \ |
241 TFS(LoadField, HANDLER, Code::LOAD_IC, LoadField) \ | 240 TFS(LoadField, BUILTIN, kNoExtraICState, LoadField) \ |
242 ASH(LoadIC_Getter_ForDeopt, LOAD_IC, kNoExtraICState) \ | 241 ASH(LoadIC_Getter_ForDeopt, BUILTIN, kNoExtraICState) \ |
243 TFS(LoadIC_Miss, BUILTIN, kNoExtraICState, LoadWithVector) \ | 242 TFS(LoadIC_Miss, BUILTIN, kNoExtraICState, LoadWithVector) \ |
244 TFS(LoadIC_Normal, HANDLER, Code::LOAD_IC, LoadWithVector) \ | 243 TFS(LoadIC_Normal, HANDLER, Code::LOAD_IC, LoadWithVector) \ |
245 TFS(LoadIC_Slow, HANDLER, Code::LOAD_IC, LoadWithVector) \ | 244 TFS(LoadIC_Slow, HANDLER, Code::LOAD_IC, LoadWithVector) \ |
246 TFS(StoreIC_Miss, BUILTIN, kNoExtraICState, StoreWithVector) \ | 245 TFS(StoreIC_Miss, BUILTIN, kNoExtraICState, StoreWithVector) \ |
247 TFS(StoreIC_Normal, HANDLER, Code::STORE_IC, StoreWithVector) \ | 246 TFS(StoreIC_Normal, HANDLER, Code::STORE_IC, StoreWithVector) \ |
248 ASH(StoreIC_Setter_ForDeopt, STORE_IC, kNoExtraICState) \ | 247 ASH(StoreIC_Setter_ForDeopt, BUILTIN, kNoExtraICState) \ |
249 TFS(StoreIC_SlowSloppy, HANDLER, Code::STORE_IC, StoreWithVector) \ | |
250 TFS(StoreIC_SlowStrict, HANDLER, Code::STORE_IC, StoreWithVector) \ | |
251 \ | 248 \ |
252 /* Built-in functions for Javascript */ \ | 249 /* Built-in functions for Javascript */ \ |
253 /* Special internal builtins */ \ | 250 /* Special internal builtins */ \ |
254 CPP(EmptyFunction) \ | 251 CPP(EmptyFunction) \ |
255 CPP(Illegal) \ | 252 CPP(Illegal) \ |
256 CPP(RestrictedFunctionPropertiesThrower) \ | 253 CPP(RestrictedFunctionPropertiesThrower) \ |
257 CPP(RestrictedStrictArgumentsPropertiesThrower) \ | 254 CPP(RestrictedStrictArgumentsPropertiesThrower) \ |
258 CPP(UnsupportedThrower) \ | 255 CPP(UnsupportedThrower) \ |
259 TFJ(ReturnReceiver, 0) \ | 256 TFJ(ReturnReceiver, 0) \ |
260 \ | 257 \ |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
948 | 945 |
949 friend class Isolate; | 946 friend class Isolate; |
950 | 947 |
951 DISALLOW_COPY_AND_ASSIGN(Builtins); | 948 DISALLOW_COPY_AND_ASSIGN(Builtins); |
952 }; | 949 }; |
953 | 950 |
954 } // namespace internal | 951 } // namespace internal |
955 } // namespace v8 | 952 } // namespace v8 |
956 | 953 |
957 #endif // V8_BUILTINS_BUILTINS_H_ | 954 #endif // V8_BUILTINS_BUILTINS_H_ |
OLD | NEW |