| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 V(NotifySoftDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 80 V(NotifySoftDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 81 V(NotifyLazyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 81 V(NotifyLazyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 82 V(NotifyStubFailure, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 82 V(NotifyStubFailure, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 83 V(NotifyStubFailureSaveDoubles, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 83 V(NotifyStubFailureSaveDoubles, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 84 \ | 84 \ |
| 85 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 85 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 86 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 86 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 87 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 87 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 88 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 88 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 89 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \ | 89 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \ |
| 90 V(KeyedLoadIC_Initialize, KEYED_LOAD_IC, UNINITIALIZED, kNoExtraICState) \ | |
| 91 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \ | 90 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \ |
| 92 \ | 91 \ |
| 92 V(KeyedLoadIC_Megamorphic_Strong, KEYED_LOAD_IC, MEGAMORPHIC, \ |
| 93 LoadICState::kStrongModeState) \ |
| 94 \ |
| 93 V(StoreIC_Setter_ForDeopt, STORE_IC, MONOMORPHIC, \ | 95 V(StoreIC_Setter_ForDeopt, STORE_IC, MONOMORPHIC, \ |
| 94 StoreICState::kStrictModeState) \ | 96 StoreICState::kStrictModeState) \ |
| 95 \ | 97 \ |
| 96 V(KeyedStoreIC_Initialize, KEYED_STORE_IC, UNINITIALIZED, kNoExtraICState) \ | 98 V(KeyedStoreIC_Initialize, KEYED_STORE_IC, UNINITIALIZED, kNoExtraICState) \ |
| 97 V(KeyedStoreIC_PreMonomorphic, KEYED_STORE_IC, PREMONOMORPHIC, \ | 99 V(KeyedStoreIC_PreMonomorphic, KEYED_STORE_IC, PREMONOMORPHIC, \ |
| 98 kNoExtraICState) \ | 100 kNoExtraICState) \ |
| 99 V(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, MEGAMORPHIC, kNoExtraICState) \ | 101 V(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, MEGAMORPHIC, kNoExtraICState) \ |
| 100 \ | 102 \ |
| 101 V(KeyedStoreIC_Initialize_Strict, KEYED_STORE_IC, UNINITIALIZED, \ | 103 V(KeyedStoreIC_Initialize_Strict, KEYED_STORE_IC, UNINITIALIZED, \ |
| 102 StoreICState::kStrictModeState) \ | 104 StoreICState::kStrictModeState) \ |
| 103 V(KeyedStoreIC_PreMonomorphic_Strict, KEYED_STORE_IC, PREMONOMORPHIC, \ | 105 V(KeyedStoreIC_PreMonomorphic_Strict, KEYED_STORE_IC, PREMONOMORPHIC, \ |
| 104 StoreICState::kStrictModeState) \ | 106 StoreICState::kStrictModeState) \ |
| 105 V(KeyedStoreIC_Megamorphic_Strict, KEYED_STORE_IC, MEGAMORPHIC, \ | 107 V(KeyedStoreIC_Megamorphic_Strict, KEYED_STORE_IC, MEGAMORPHIC, \ |
| 106 StoreICState::kStrictModeState) \ | 108 StoreICState::kStrictModeState) \ |
| 107 \ | 109 \ |
| 108 /* Uses KeyedLoadIC_Initialize; must be after in list. */ \ | |
| 109 V(FunctionCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 110 V(FunctionCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 110 V(FunctionApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 111 V(FunctionApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 111 V(ReflectApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 112 V(ReflectApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 112 V(ReflectConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 113 V(ReflectConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 113 \ | 114 \ |
| 114 V(InternalArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 115 V(InternalArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 115 V(ArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 116 V(ArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 116 \ | 117 \ |
| 117 V(StringConstructCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 118 V(StringConstructCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 118 \ | 119 \ |
| 119 V(OnStackReplacement, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 120 V(OnStackReplacement, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 120 V(InterruptCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 121 V(InterruptCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 121 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 122 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 122 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 123 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 123 \ | 124 \ |
| 124 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 125 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 125 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 126 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 126 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 127 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 127 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) | 128 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) |
| 128 | 129 |
| 129 // Define list of builtin handlers implemented in assembly. | 130 // Define list of builtin handlers implemented in assembly. |
| 130 #define BUILTIN_LIST_H(V) \ | 131 #define BUILTIN_LIST_H(V) \ |
| 131 V(LoadIC_Slow, LOAD_IC) \ | 132 V(LoadIC_Slow, LOAD_IC) \ |
| 132 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ | 133 V(LoadIC_Slow_Strong, LOAD_IC) \ |
| 133 V(StoreIC_Slow, STORE_IC) \ | 134 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ |
| 134 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ | 135 V(KeyedLoadIC_Slow_Strong, KEYED_LOAD_IC) \ |
| 135 V(LoadIC_Normal, LOAD_IC) \ | 136 V(StoreIC_Slow, STORE_IC) \ |
| 136 V(StoreIC_Normal, STORE_IC) | 137 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ |
| 138 V(LoadIC_Normal, LOAD_IC) \ |
| 139 V(LoadIC_Normal_Strong, LOAD_IC) \ |
| 140 V(StoreIC_Normal, STORE_IC) |
| 137 | 141 |
| 138 // Define list of builtins used by the debugger implemented in assembly. | 142 // Define list of builtins used by the debugger implemented in assembly. |
| 139 #define BUILTIN_LIST_DEBUG_A(V) \ | 143 #define BUILTIN_LIST_DEBUG_A(V) \ |
| 140 V(Return_DebugBreak, BUILTIN, DEBUG_STUB, \ | 144 V(Return_DebugBreak, BUILTIN, DEBUG_STUB, \ |
| 141 DEBUG_BREAK) \ | 145 DEBUG_BREAK) \ |
| 142 V(CallFunctionStub_DebugBreak, BUILTIN, DEBUG_STUB, \ | 146 V(CallFunctionStub_DebugBreak, BUILTIN, DEBUG_STUB, \ |
| 143 DEBUG_BREAK) \ | 147 DEBUG_BREAK) \ |
| 144 V(CallConstructStub_DebugBreak, BUILTIN, DEBUG_STUB, \ | 148 V(CallConstructStub_DebugBreak, BUILTIN, DEBUG_STUB, \ |
| 145 DEBUG_BREAK) \ | 149 DEBUG_BREAK) \ |
| 146 V(CallConstructStub_Recording_DebugBreak, BUILTIN, DEBUG_STUB, \ | 150 V(CallConstructStub_Recording_DebugBreak, BUILTIN, DEBUG_STUB, \ |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 | 369 |
| 366 friend class BuiltinFunctionTable; | 370 friend class BuiltinFunctionTable; |
| 367 friend class Isolate; | 371 friend class Isolate; |
| 368 | 372 |
| 369 DISALLOW_COPY_AND_ASSIGN(Builtins); | 373 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 370 }; | 374 }; |
| 371 | 375 |
| 372 } } // namespace v8::internal | 376 } } // namespace v8::internal |
| 373 | 377 |
| 374 #endif // V8_BUILTINS_H_ | 378 #endif // V8_BUILTINS_H_ |
| OLD | NEW |