| 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 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 | 10 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 V(NotifyStubFailureSaveDoubles, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 82 V(NotifyStubFailureSaveDoubles, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 83 \ | 83 \ |
| 84 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 84 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 85 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 85 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 86 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 86 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 87 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 87 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 88 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \ | 88 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \ |
| 89 V(KeyedLoadIC_Initialize, KEYED_LOAD_IC, UNINITIALIZED, kNoExtraICState) \ | 89 V(KeyedLoadIC_Initialize, KEYED_LOAD_IC, UNINITIALIZED, kNoExtraICState) \ |
| 90 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \ | 90 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \ |
| 91 \ | 91 \ |
| 92 V(KeyedLoadIC_Initialize_Strong, KEYED_LOAD_IC, UNINITIALIZED, \ |
| 93 LoadICState::kStrongModeState) \ |
| 94 V(KeyedLoadIC_Megamorphic_Strong, KEYED_LOAD_IC, MEGAMORPHIC, \ |
| 95 LoadICState::kStrongModeState) \ |
| 96 \ |
| 92 V(StoreIC_Setter_ForDeopt, STORE_IC, MONOMORPHIC, \ | 97 V(StoreIC_Setter_ForDeopt, STORE_IC, MONOMORPHIC, \ |
| 93 StoreICState::kStrictModeState) \ | 98 StoreICState::kStrictModeState) \ |
| 94 \ | 99 \ |
| 95 V(KeyedStoreIC_Initialize, KEYED_STORE_IC, UNINITIALIZED, kNoExtraICState) \ | 100 V(KeyedStoreIC_Initialize, KEYED_STORE_IC, UNINITIALIZED, kNoExtraICState) \ |
| 96 V(KeyedStoreIC_PreMonomorphic, KEYED_STORE_IC, PREMONOMORPHIC, \ | 101 V(KeyedStoreIC_PreMonomorphic, KEYED_STORE_IC, PREMONOMORPHIC, \ |
| 97 kNoExtraICState) \ | 102 kNoExtraICState) \ |
| 98 V(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, MEGAMORPHIC, kNoExtraICState) \ | 103 V(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, MEGAMORPHIC, kNoExtraICState) \ |
| 99 \ | 104 \ |
| 100 V(KeyedStoreIC_Initialize_Strict, KEYED_STORE_IC, UNINITIALIZED, \ | 105 V(KeyedStoreIC_Initialize_Strict, KEYED_STORE_IC, UNINITIALIZED, \ |
| 101 StoreICState::kStrictModeState) \ | 106 StoreICState::kStrictModeState) \ |
| (...skipping 17 matching lines...) Expand all Loading... |
| 119 V(InterruptCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 124 V(InterruptCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 120 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 125 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 121 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 126 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 122 \ | 127 \ |
| 123 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 128 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 124 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 129 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 125 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 130 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 126 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) | 131 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) |
| 127 | 132 |
| 128 // Define list of builtin handlers implemented in assembly. | 133 // Define list of builtin handlers implemented in assembly. |
| 129 #define BUILTIN_LIST_H(V) \ | 134 #define BUILTIN_LIST_H(V) \ |
| 130 V(LoadIC_Slow, LOAD_IC) \ | 135 V(LoadIC_Slow, LOAD_IC) \ |
| 131 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ | 136 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ |
| 132 V(StoreIC_Slow, STORE_IC) \ | 137 V(StoreIC_Slow, STORE_IC) \ |
| 133 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ | 138 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ |
| 134 V(LoadIC_Normal, LOAD_IC) \ | 139 V(LoadIC_Normal, LOAD_IC) \ |
| 135 V(StoreIC_Normal, STORE_IC) | 140 V(StoreIC_Normal, STORE_IC) |
| 136 | 141 |
| 137 // Define list of builtins used by the debugger implemented in assembly. | 142 // Define list of builtins used by the debugger implemented in assembly. |
| 138 #define BUILTIN_LIST_DEBUG_A(V) \ | 143 #define BUILTIN_LIST_DEBUG_A(V) \ |
| 139 V(Return_DebugBreak, BUILTIN, DEBUG_STUB, \ | 144 V(Return_DebugBreak, BUILTIN, DEBUG_STUB, \ |
| 140 DEBUG_BREAK) \ | 145 DEBUG_BREAK) \ |
| 141 V(CallFunctionStub_DebugBreak, BUILTIN, DEBUG_STUB, \ | 146 V(CallFunctionStub_DebugBreak, BUILTIN, DEBUG_STUB, \ |
| 142 DEBUG_BREAK) \ | 147 DEBUG_BREAK) \ |
| 143 V(CallConstructStub_DebugBreak, BUILTIN, DEBUG_STUB, \ | 148 V(CallConstructStub_DebugBreak, BUILTIN, DEBUG_STUB, \ |
| 144 DEBUG_BREAK) \ | 149 DEBUG_BREAK) \ |
| 145 V(CallConstructStub_Recording_DebugBreak, BUILTIN, DEBUG_STUB, \ | 150 V(CallConstructStub_Recording_DebugBreak, BUILTIN, DEBUG_STUB, \ |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 | 368 |
| 364 friend class BuiltinFunctionTable; | 369 friend class BuiltinFunctionTable; |
| 365 friend class Isolate; | 370 friend class Isolate; |
| 366 | 371 |
| 367 DISALLOW_COPY_AND_ASSIGN(Builtins); | 372 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 368 }; | 373 }; |
| 369 | 374 |
| 370 } } // namespace v8::internal | 375 } } // namespace v8::internal |
| 371 | 376 |
| 372 #endif // V8_BUILTINS_H_ | 377 #endif // V8_BUILTINS_H_ |
| OLD | NEW |