| 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 V(InterpreterNotifyLazyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 214 V(InterpreterNotifyLazyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 215 V(InterpreterEnterBytecodeDispatch, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 215 V(InterpreterEnterBytecodeDispatch, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 216 \ | 216 \ |
| 217 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 217 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 218 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 218 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 219 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 219 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 220 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 220 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 221 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \ | 221 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \ |
| 222 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \ | 222 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \ |
| 223 \ | 223 \ |
| 224 V(KeyedLoadIC_Megamorphic_Strong, KEYED_LOAD_IC, MEGAMORPHIC, \ | |
| 225 LoadICState::kStrongModeState) \ | |
| 226 \ | |
| 227 V(StoreIC_Setter_ForDeopt, STORE_IC, MONOMORPHIC, \ | 224 V(StoreIC_Setter_ForDeopt, STORE_IC, MONOMORPHIC, \ |
| 228 StoreICState::kStrictModeState) \ | 225 StoreICState::kStrictModeState) \ |
| 229 \ | 226 \ |
| 230 V(KeyedStoreIC_Initialize, KEYED_STORE_IC, UNINITIALIZED, kNoExtraICState) \ | 227 V(KeyedStoreIC_Initialize, KEYED_STORE_IC, UNINITIALIZED, kNoExtraICState) \ |
| 231 V(KeyedStoreIC_PreMonomorphic, KEYED_STORE_IC, PREMONOMORPHIC, \ | 228 V(KeyedStoreIC_PreMonomorphic, KEYED_STORE_IC, PREMONOMORPHIC, \ |
| 232 kNoExtraICState) \ | 229 kNoExtraICState) \ |
| 233 V(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, MEGAMORPHIC, kNoExtraICState) \ | 230 V(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, MEGAMORPHIC, kNoExtraICState) \ |
| 234 \ | 231 \ |
| 235 V(KeyedStoreIC_Initialize_Strict, KEYED_STORE_IC, UNINITIALIZED, \ | 232 V(KeyedStoreIC_Initialize_Strict, KEYED_STORE_IC, UNINITIALIZED, \ |
| 236 StoreICState::kStrictModeState) \ | 233 StoreICState::kStrictModeState) \ |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 279 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 283 \ | 280 \ |
| 284 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 281 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 285 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 282 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 286 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 283 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 287 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) | 284 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) |
| 288 | 285 |
| 289 // Define list of builtin handlers implemented in assembly. | 286 // Define list of builtin handlers implemented in assembly. |
| 290 #define BUILTIN_LIST_H(V) \ | 287 #define BUILTIN_LIST_H(V) \ |
| 291 V(LoadIC_Slow, LOAD_IC) \ | 288 V(LoadIC_Slow, LOAD_IC) \ |
| 292 V(LoadIC_Slow_Strong, LOAD_IC) \ | |
| 293 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ | 289 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ |
| 294 V(KeyedLoadIC_Slow_Strong, KEYED_LOAD_IC) \ | |
| 295 V(StoreIC_Slow, STORE_IC) \ | 290 V(StoreIC_Slow, STORE_IC) \ |
| 296 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ | 291 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ |
| 297 V(LoadIC_Normal, LOAD_IC) \ | 292 V(LoadIC_Normal, LOAD_IC) \ |
| 298 V(LoadIC_Normal_Strong, LOAD_IC) \ | |
| 299 V(StoreIC_Normal, STORE_IC) | 293 V(StoreIC_Normal, STORE_IC) |
| 300 | 294 |
| 301 // Define list of builtins used by the debugger implemented in assembly. | 295 // Define list of builtins used by the debugger implemented in assembly. |
| 302 #define BUILTIN_LIST_DEBUG_A(V) \ | 296 #define BUILTIN_LIST_DEBUG_A(V) \ |
| 303 V(Return_DebugBreak, BUILTIN, DEBUG_STUB, kNoExtraICState) \ | 297 V(Return_DebugBreak, BUILTIN, DEBUG_STUB, kNoExtraICState) \ |
| 304 V(Slot_DebugBreak, BUILTIN, DEBUG_STUB, kNoExtraICState) \ | 298 V(Slot_DebugBreak, BUILTIN, DEBUG_STUB, kNoExtraICState) \ |
| 305 V(FrameDropper_LiveEdit, BUILTIN, DEBUG_STUB, kNoExtraICState) | 299 V(FrameDropper_LiveEdit, BUILTIN, DEBUG_STUB, kNoExtraICState) |
| 306 | 300 |
| 307 | 301 |
| 308 class BuiltinFunctionTable; | 302 class BuiltinFunctionTable; |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 friend class BuiltinFunctionTable; | 597 friend class BuiltinFunctionTable; |
| 604 friend class Isolate; | 598 friend class Isolate; |
| 605 | 599 |
| 606 DISALLOW_COPY_AND_ASSIGN(Builtins); | 600 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 607 }; | 601 }; |
| 608 | 602 |
| 609 } // namespace internal | 603 } // namespace internal |
| 610 } // namespace v8 | 604 } // namespace v8 |
| 611 | 605 |
| 612 #endif // V8_BUILTINS_H_ | 606 #endif // V8_BUILTINS_H_ |
| OLD | NEW |