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_H_ | 5 #ifndef V8_BUILTINS_H_ |
6 #define V8_BUILTINS_H_ | 6 #define V8_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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 V(NotifyStubFailure, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 248 V(NotifyStubFailure, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
249 V(NotifyStubFailureSaveDoubles, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 249 V(NotifyStubFailureSaveDoubles, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
250 \ | 250 \ |
251 V(InterpreterEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 251 V(InterpreterEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
252 V(InterpreterMarkBaselineOnReturn, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 252 V(InterpreterMarkBaselineOnReturn, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
253 V(InterpreterPushArgsAndCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 253 V(InterpreterPushArgsAndCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
254 V(InterpreterPushArgsAndTailCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 254 V(InterpreterPushArgsAndTailCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
255 V(InterpreterPushArgsAndConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 255 V(InterpreterPushArgsAndConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
256 V(InterpreterEnterBytecodeDispatch, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 256 V(InterpreterEnterBytecodeDispatch, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
257 \ | 257 \ |
258 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | |
259 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 258 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
260 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 259 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
261 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 260 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
262 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \ | 261 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \ |
263 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \ | 262 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \ |
264 \ | 263 \ |
265 V(StoreIC_Setter_ForDeopt, STORE_IC, MONOMORPHIC, \ | 264 V(StoreIC_Setter_ForDeopt, STORE_IC, MONOMORPHIC, \ |
266 StoreICState::kStrictModeState) \ | 265 StoreICState::kStrictModeState) \ |
267 \ | 266 \ |
268 V(StoreIC_Megamorphic, STORE_IC, MEGAMORPHIC, kNoExtraICState) \ | 267 V(StoreIC_Megamorphic, STORE_IC, MEGAMORPHIC, kNoExtraICState) \ |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 V(ObjectHasOwnProperty, 2) \ | 333 V(ObjectHasOwnProperty, 2) \ |
335 V(ArrayIsArray, 2) \ | 334 V(ArrayIsArray, 2) \ |
336 V(StringFromCharCode, 2) \ | 335 V(StringFromCharCode, 2) \ |
337 V(StringPrototypeCharAt, 2) \ | 336 V(StringPrototypeCharAt, 2) \ |
338 V(StringPrototypeCharCodeAt, 2) \ | 337 V(StringPrototypeCharCodeAt, 2) \ |
339 V(AtomicsLoad, 3) \ | 338 V(AtomicsLoad, 3) \ |
340 V(AtomicsStore, 4) | 339 V(AtomicsStore, 4) |
341 | 340 |
342 // Define list of builtin handlers implemented in assembly. | 341 // Define list of builtin handlers implemented in assembly. |
343 #define BUILTIN_LIST_H(V) \ | 342 #define BUILTIN_LIST_H(V) \ |
344 V(LoadIC_Slow, LOAD_IC) \ | |
345 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ | 343 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ |
346 V(StoreIC_Slow, STORE_IC) \ | 344 V(StoreIC_Slow, STORE_IC) \ |
347 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ | 345 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ |
348 V(LoadIC_Normal, LOAD_IC) \ | 346 V(LoadIC_Normal, LOAD_IC) \ |
349 V(StoreIC_Normal, STORE_IC) | 347 V(StoreIC_Normal, STORE_IC) |
350 | 348 |
351 // Define list of builtins used by the debugger implemented in assembly. | 349 // Define list of builtins used by the debugger implemented in assembly. |
352 #define BUILTIN_LIST_DEBUG_A(V) \ | 350 #define BUILTIN_LIST_DEBUG_A(V) \ |
353 V(Return_DebugBreak, BUILTIN, DEBUG_STUB, kNoExtraICState) \ | 351 V(Return_DebugBreak, BUILTIN, DEBUG_STUB, kNoExtraICState) \ |
354 V(Slot_DebugBreak, BUILTIN, DEBUG_STUB, kNoExtraICState) \ | 352 V(Slot_DebugBreak, BUILTIN, DEBUG_STUB, kNoExtraICState) \ |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 friend class BuiltinFunctionTable; | 705 friend class BuiltinFunctionTable; |
708 friend class Isolate; | 706 friend class Isolate; |
709 | 707 |
710 DISALLOW_COPY_AND_ASSIGN(Builtins); | 708 DISALLOW_COPY_AND_ASSIGN(Builtins); |
711 }; | 709 }; |
712 | 710 |
713 } // namespace internal | 711 } // namespace internal |
714 } // namespace v8 | 712 } // namespace v8 |
715 | 713 |
716 #endif // V8_BUILTINS_H_ | 714 #endif // V8_BUILTINS_H_ |
OLD | NEW |