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