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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 TFS(ToName, BUILTIN, kNoExtraICState, TypeConversion) \ | 205 TFS(ToName, BUILTIN, kNoExtraICState, TypeConversion) \ |
206 TFS(NonNumberToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ | 206 TFS(NonNumberToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ |
207 TFS(ToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ | 207 TFS(ToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ |
208 TFS(ToString, BUILTIN, kNoExtraICState, TypeConversion) \ | 208 TFS(ToString, BUILTIN, kNoExtraICState, TypeConversion) \ |
209 TFS(ToInteger, BUILTIN, kNoExtraICState, TypeConversion) \ | 209 TFS(ToInteger, BUILTIN, kNoExtraICState, TypeConversion) \ |
210 TFS(ToLength, BUILTIN, kNoExtraICState, TypeConversion) \ | 210 TFS(ToLength, BUILTIN, kNoExtraICState, TypeConversion) \ |
211 TFS(Typeof, BUILTIN, kNoExtraICState, Typeof) \ | 211 TFS(Typeof, BUILTIN, kNoExtraICState, Typeof) \ |
212 TFS(GetSuperConstructor, BUILTIN, kNoExtraICState, TypeConversion) \ | 212 TFS(GetSuperConstructor, BUILTIN, kNoExtraICState, TypeConversion) \ |
213 \ | 213 \ |
214 /* Handlers */ \ | 214 /* Handlers */ \ |
215 TFS(KeyedLoadIC_Megamorphic_TF, KEYED_LOAD_IC, kNoExtraICState, \ | 215 TFS(LoadICProtoArray, HANDLER, Code::LOAD_IC, LoadICProtoArray) \ |
216 LoadWithVector) \ | 216 TFS(LoadICProtoArrayThrowIfNonexistent, HANDLER, Code::LOAD_IC, \ |
| 217 LoadICProtoArray) \ |
| 218 TFS(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, kNoExtraICState, LoadWithVector) \ |
217 TFS(KeyedLoadIC_Miss, BUILTIN, kNoExtraICState, LoadWithVector) \ | 219 TFS(KeyedLoadIC_Miss, BUILTIN, kNoExtraICState, LoadWithVector) \ |
218 TFS(KeyedLoadIC_Slow, HANDLER, Code::KEYED_LOAD_IC, LoadWithVector) \ | 220 TFS(KeyedLoadIC_Slow, HANDLER, Code::KEYED_LOAD_IC, LoadWithVector) \ |
219 TFS(KeyedStoreIC_Megamorphic_TF, KEYED_STORE_IC, kNoExtraICState, \ | 221 TFS(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, kNoExtraICState, \ |
220 StoreWithVector) \ | 222 StoreWithVector) \ |
221 TFS(KeyedStoreIC_Megamorphic_Strict_TF, KEYED_STORE_IC, \ | 223 TFS(KeyedStoreIC_Megamorphic_Strict, KEYED_STORE_IC, \ |
222 StoreICState::kStrictModeState, StoreWithVector) \ | 224 StoreICState::kStrictModeState, StoreWithVector) \ |
223 ASM(KeyedStoreIC_Miss) \ | 225 ASM(KeyedStoreIC_Miss) \ |
224 ASH(KeyedStoreIC_Slow, HANDLER, Code::KEYED_STORE_IC) \ | 226 ASH(KeyedStoreIC_Slow, HANDLER, Code::KEYED_STORE_IC) \ |
225 TFS(LoadGlobalIC_Miss, BUILTIN, kNoExtraICState, LoadGlobalWithVector) \ | 227 TFS(LoadGlobalIC_Miss, BUILTIN, kNoExtraICState, LoadGlobalWithVector) \ |
226 TFS(LoadGlobalIC_Slow, HANDLER, Code::LOAD_GLOBAL_IC, LoadGlobalWithVector) \ | 228 TFS(LoadGlobalIC_Slow, HANDLER, Code::LOAD_GLOBAL_IC, LoadGlobalWithVector) \ |
| 229 TFS(LoadField, HANDLER, Code::LOAD_IC, LoadField) \ |
227 ASH(LoadIC_Getter_ForDeopt, LOAD_IC, kNoExtraICState) \ | 230 ASH(LoadIC_Getter_ForDeopt, LOAD_IC, kNoExtraICState) \ |
228 TFS(LoadIC_Miss, BUILTIN, kNoExtraICState, LoadWithVector) \ | 231 TFS(LoadIC_Miss, BUILTIN, kNoExtraICState, LoadWithVector) \ |
229 TFS(LoadIC_Normal, HANDLER, Code::LOAD_IC, LoadWithVector) \ | 232 TFS(LoadIC_Normal, HANDLER, Code::LOAD_IC, LoadWithVector) \ |
230 TFS(LoadIC_Slow, HANDLER, Code::LOAD_IC, LoadWithVector) \ | 233 TFS(LoadIC_Slow, HANDLER, Code::LOAD_IC, LoadWithVector) \ |
231 TFS(StoreIC_Miss, BUILTIN, kNoExtraICState, StoreWithVector) \ | 234 TFS(StoreIC_Miss, BUILTIN, kNoExtraICState, StoreWithVector) \ |
232 TFS(StoreIC_Normal, HANDLER, Code::STORE_IC, StoreWithVector) \ | 235 TFS(StoreIC_Normal, HANDLER, Code::STORE_IC, StoreWithVector) \ |
233 ASH(StoreIC_Setter_ForDeopt, STORE_IC, StoreICState::kStrictModeState) \ | 236 ASH(StoreIC_Setter_ForDeopt, STORE_IC, StoreICState::kStrictModeState) \ |
234 TFS(StoreIC_SlowSloppy, HANDLER, Code::STORE_IC, StoreWithVector) \ | 237 TFS(StoreIC_SlowSloppy, HANDLER, Code::STORE_IC, StoreWithVector) \ |
235 TFS(StoreIC_SlowStrict, HANDLER, Code::STORE_IC, StoreWithVector) \ | 238 TFS(StoreIC_SlowStrict, HANDLER, Code::STORE_IC, StoreWithVector) \ |
236 \ | 239 \ |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 | 928 |
926 friend class Isolate; | 929 friend class Isolate; |
927 | 930 |
928 DISALLOW_COPY_AND_ASSIGN(Builtins); | 931 DISALLOW_COPY_AND_ASSIGN(Builtins); |
929 }; | 932 }; |
930 | 933 |
931 } // namespace internal | 934 } // namespace internal |
932 } // namespace v8 | 935 } // namespace v8 |
933 | 936 |
934 #endif // V8_BUILTINS_BUILTINS_H_ | 937 #endif // V8_BUILTINS_BUILTINS_H_ |
OLD | NEW |