OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_COMPILER_OPCODES_H_ | 5 #ifndef V8_COMPILER_OPCODES_H_ |
6 #define V8_COMPILER_OPCODES_H_ | 6 #define V8_COMPILER_OPCODES_H_ |
7 | 7 |
8 // Opcodes for control operators. | 8 // Opcodes for control operators. |
9 #define CONTROL_OP_LIST(V) \ | 9 #define CONTROL_OP_LIST(V) \ |
10 V(Start) \ | 10 V(Start) \ |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 V(ChangeUint32ToTagged) \ | 148 V(ChangeUint32ToTagged) \ |
149 V(ChangeFloat64ToTagged) \ | 149 V(ChangeFloat64ToTagged) \ |
150 V(ChangeBoolToBit) \ | 150 V(ChangeBoolToBit) \ |
151 V(ChangeBitToBool) \ | 151 V(ChangeBitToBool) \ |
152 V(LoadField) \ | 152 V(LoadField) \ |
153 V(LoadElement) \ | 153 V(LoadElement) \ |
154 V(StoreField) \ | 154 V(StoreField) \ |
155 V(StoreElement) | 155 V(StoreElement) |
156 | 156 |
157 // Opcodes for Machine-level operators. | 157 // Opcodes for Machine-level operators. |
158 #define MACHINE_OP_LIST(V) \ | 158 #define MACHINE_OP_LIST(V) \ |
159 V(Load) \ | 159 V(Load) \ |
160 V(Store) \ | 160 V(Store) \ |
161 V(Word32And) \ | 161 V(Word32And) \ |
162 V(Word32Or) \ | 162 V(Word32Or) \ |
163 V(Word32Xor) \ | 163 V(Word32Xor) \ |
164 V(Word32Shl) \ | 164 V(Word32Shl) \ |
165 V(Word32Shr) \ | 165 V(Word32Shr) \ |
166 V(Word32Sar) \ | 166 V(Word32Sar) \ |
167 V(Word32Equal) \ | 167 V(Word32Equal) \ |
168 V(Word64And) \ | 168 V(Word64And) \ |
169 V(Word64Or) \ | 169 V(Word64Or) \ |
170 V(Word64Xor) \ | 170 V(Word64Xor) \ |
171 V(Word64Shl) \ | 171 V(Word64Shl) \ |
172 V(Word64Shr) \ | 172 V(Word64Shr) \ |
173 V(Word64Sar) \ | 173 V(Word64Sar) \ |
174 V(Word64Equal) \ | 174 V(Word64Equal) \ |
175 V(Int32Add) \ | 175 V(Int32Add) \ |
176 V(Int32AddWithOverflow) \ | 176 V(Int32AddWithOverflow) \ |
177 V(Int32Sub) \ | 177 V(Int32Sub) \ |
178 V(Int32Mul) \ | 178 V(Int32Mul) \ |
179 V(Int32Div) \ | 179 V(Int32Div) \ |
180 V(Int32UDiv) \ | 180 V(Int32UDiv) \ |
181 V(Int32Mod) \ | 181 V(Int32Mod) \ |
182 V(Int32UMod) \ | 182 V(Int32UMod) \ |
183 V(Int32LessThan) \ | 183 V(Int32LessThan) \ |
184 V(Int32LessThanOrEqual) \ | 184 V(Int32LessThanOrEqual) \ |
185 V(Uint32LessThan) \ | 185 V(Uint32LessThan) \ |
186 V(Uint32LessThanOrEqual) \ | 186 V(Uint32LessThanOrEqual) \ |
187 V(Int64Add) \ | 187 V(Int64Add) \ |
188 V(Int64Sub) \ | 188 V(Int64Sub) \ |
189 V(Int64Mul) \ | 189 V(Int64Mul) \ |
190 V(Int64Div) \ | 190 V(Int64Div) \ |
191 V(Int64UDiv) \ | 191 V(Int64UDiv) \ |
192 V(Int64Mod) \ | 192 V(Int64Mod) \ |
193 V(Int64UMod) \ | 193 V(Int64UMod) \ |
194 V(Int64LessThan) \ | 194 V(Int64LessThan) \ |
195 V(Int64LessThanOrEqual) \ | 195 V(Int64LessThanOrEqual) \ |
196 V(ConvertInt64ToInt32) \ | 196 V(ConvertInt64ToInt32) \ |
197 V(ConvertInt32ToInt64) \ | 197 V(ConvertInt32ToInt64) \ |
198 V(ConvertInt32ToFloat64) \ | 198 V(ChangeInt32ToFloat64) \ |
199 V(ConvertUint32ToFloat64) \ | 199 V(ChangeUint32ToFloat64) \ |
200 V(ConvertFloat64ToInt32) \ | 200 V(ChangeFloat64ToInt32) \ |
201 V(ConvertFloat64ToUint32) \ | 201 V(ChangeFloat64ToUint32) \ |
202 V(Float64Add) \ | 202 V(Float64Add) \ |
203 V(Float64Sub) \ | 203 V(Float64Sub) \ |
204 V(Float64Mul) \ | 204 V(Float64Mul) \ |
205 V(Float64Div) \ | 205 V(Float64Div) \ |
206 V(Float64Mod) \ | 206 V(Float64Mod) \ |
207 V(Float64Equal) \ | 207 V(Float64Equal) \ |
208 V(Float64LessThan) \ | 208 V(Float64LessThan) \ |
209 V(Float64LessThanOrEqual) | 209 V(Float64LessThanOrEqual) |
210 | 210 |
211 #define VALUE_OP_LIST(V) \ | 211 #define VALUE_OP_LIST(V) \ |
212 COMMON_OP_LIST(V) \ | 212 COMMON_OP_LIST(V) \ |
213 SIMPLIFIED_OP_LIST(V) \ | 213 SIMPLIFIED_OP_LIST(V) \ |
214 MACHINE_OP_LIST(V) \ | 214 MACHINE_OP_LIST(V) \ |
215 JS_OP_LIST(V) | 215 JS_OP_LIST(V) |
216 | 216 |
217 // The combination of all operators at all levels and the common operators. | 217 // The combination of all operators at all levels and the common operators. |
218 #define ALL_OP_LIST(V) \ | 218 #define ALL_OP_LIST(V) \ |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 return false; | 286 return false; |
287 } | 287 } |
288 } | 288 } |
289 }; | 289 }; |
290 | 290 |
291 } // namespace compiler | 291 } // namespace compiler |
292 } // namespace internal | 292 } // namespace internal |
293 } // namespace v8 | 293 } // namespace v8 |
294 | 294 |
295 #endif // V8_COMPILER_OPCODES_H_ | 295 #endif // V8_COMPILER_OPCODES_H_ |
OLD | NEW |