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