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 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 // Opcodes for control operators. | 10 // Opcodes for control operators. |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 197 |
198 #define SIMPLIFIED_COMPARE_BINOP_LIST(V) \ | 198 #define SIMPLIFIED_COMPARE_BINOP_LIST(V) \ |
199 V(NumberEqual) \ | 199 V(NumberEqual) \ |
200 V(NumberLessThan) \ | 200 V(NumberLessThan) \ |
201 V(NumberLessThanOrEqual) \ | 201 V(NumberLessThanOrEqual) \ |
202 V(ReferenceEqual) \ | 202 V(ReferenceEqual) \ |
203 V(StringEqual) \ | 203 V(StringEqual) \ |
204 V(StringLessThan) \ | 204 V(StringLessThan) \ |
205 V(StringLessThanOrEqual) | 205 V(StringLessThanOrEqual) |
206 | 206 |
207 #define SIMPLIFIED_OTHER_OP_LIST(V) \ | 207 #define SIMPLIFIED_OTHER_OP_LIST(V) \ |
208 V(PlainPrimitiveToNumber) \ | 208 V(PlainPrimitiveToNumber) \ |
209 V(PlainPrimitiveToWord32) \ | 209 V(PlainPrimitiveToWord32) \ |
210 V(PlainPrimitiveToFloat64) \ | 210 V(PlainPrimitiveToFloat64) \ |
211 V(BooleanNot) \ | 211 V(BooleanNot) \ |
212 V(SpeculativeNumberAdd) \ | 212 V(SpeculativeNumberAdd) \ |
213 V(SpeculativeNumberSubtract) \ | 213 V(SpeculativeNumberSubtract) \ |
214 V(SpeculativeNumberMultiply) \ | 214 V(SpeculativeNumberMultiply) \ |
215 V(SpeculativeNumberDivide) \ | 215 V(SpeculativeNumberDivide) \ |
216 V(SpeculativeNumberModulus) \ | 216 V(SpeculativeNumberModulus) \ |
217 V(SpeculativeNumberEqual) \ | 217 V(SpeculativeNumberEqual) \ |
218 V(SpeculativeNumberLessThan) \ | 218 V(SpeculativeNumberLessThan) \ |
219 V(SpeculativeNumberLessThanOrEqual) \ | 219 V(SpeculativeNumberLessThanOrEqual) \ |
220 V(NumberAdd) \ | 220 V(NumberAdd) \ |
221 V(NumberSubtract) \ | 221 V(NumberSubtract) \ |
222 V(NumberMultiply) \ | 222 V(NumberMultiply) \ |
223 V(NumberDivide) \ | 223 V(NumberDivide) \ |
224 V(NumberModulus) \ | 224 V(NumberModulus) \ |
225 V(NumberBitwiseOr) \ | 225 V(NumberBitwiseOr) \ |
226 V(NumberBitwiseXor) \ | 226 V(NumberBitwiseXor) \ |
227 V(NumberBitwiseAnd) \ | 227 V(NumberBitwiseAnd) \ |
228 V(NumberShiftLeft) \ | 228 V(NumberShiftLeft) \ |
229 V(SpeculativeNumberShiftLeft) \ | 229 V(SpeculativeNumberShiftLeft) \ |
230 V(NumberShiftRight) \ | 230 V(SpeculativeNumberShiftRight) \ |
231 V(NumberShiftRightLogical) \ | 231 V(SpeculativeNumberShiftRightLogical) \ |
232 V(NumberImul) \ | 232 V(NumberShiftRight) \ |
233 V(NumberAbs) \ | 233 V(NumberShiftRightLogical) \ |
234 V(NumberClz32) \ | 234 V(NumberImul) \ |
235 V(NumberCeil) \ | 235 V(NumberAbs) \ |
236 V(NumberCos) \ | 236 V(NumberClz32) \ |
237 V(NumberCosh) \ | 237 V(NumberCeil) \ |
238 V(NumberFloor) \ | 238 V(NumberCos) \ |
239 V(NumberFround) \ | 239 V(NumberCosh) \ |
240 V(NumberAcos) \ | 240 V(NumberFloor) \ |
241 V(NumberAcosh) \ | 241 V(NumberFround) \ |
242 V(NumberAsin) \ | 242 V(NumberAcos) \ |
243 V(NumberAsinh) \ | 243 V(NumberAcosh) \ |
244 V(NumberAtan) \ | 244 V(NumberAsin) \ |
245 V(NumberAtanh) \ | 245 V(NumberAsinh) \ |
246 V(NumberAtan2) \ | 246 V(NumberAtan) \ |
247 V(NumberExp) \ | 247 V(NumberAtanh) \ |
248 V(NumberExpm1) \ | 248 V(NumberAtan2) \ |
249 V(NumberLog) \ | 249 V(NumberExp) \ |
250 V(NumberLog1p) \ | 250 V(NumberExpm1) \ |
251 V(NumberLog2) \ | 251 V(NumberLog) \ |
252 V(NumberLog10) \ | 252 V(NumberLog1p) \ |
253 V(NumberMax) \ | 253 V(NumberLog2) \ |
254 V(NumberMin) \ | 254 V(NumberLog10) \ |
255 V(NumberCbrt) \ | 255 V(NumberMax) \ |
256 V(NumberPow) \ | 256 V(NumberMin) \ |
257 V(NumberRound) \ | 257 V(NumberCbrt) \ |
258 V(NumberSign) \ | 258 V(NumberPow) \ |
259 V(NumberSin) \ | 259 V(NumberRound) \ |
260 V(NumberSinh) \ | 260 V(NumberSign) \ |
261 V(NumberSqrt) \ | 261 V(NumberSin) \ |
262 V(NumberTan) \ | 262 V(NumberSinh) \ |
263 V(NumberTanh) \ | 263 V(NumberSqrt) \ |
264 V(NumberTrunc) \ | 264 V(NumberTan) \ |
265 V(NumberToInt32) \ | 265 V(NumberTanh) \ |
266 V(NumberToUint32) \ | 266 V(NumberTrunc) \ |
267 V(NumberSilenceNaN) \ | 267 V(NumberToInt32) \ |
268 V(StringCharCodeAt) \ | 268 V(NumberToUint32) \ |
269 V(StringFromCharCode) \ | 269 V(NumberSilenceNaN) \ |
270 V(CheckBounds) \ | 270 V(StringCharCodeAt) \ |
271 V(CheckIf) \ | 271 V(StringFromCharCode) \ |
272 V(CheckNumber) \ | 272 V(CheckBounds) \ |
273 V(CheckString) \ | 273 V(CheckIf) \ |
274 V(CheckTaggedPointer) \ | 274 V(CheckNumber) \ |
275 V(CheckTaggedSigned) \ | 275 V(CheckString) \ |
276 V(CheckFloat64Hole) \ | 276 V(CheckTaggedPointer) \ |
277 V(CheckTaggedHole) \ | 277 V(CheckTaggedSigned) \ |
278 V(Allocate) \ | 278 V(CheckFloat64Hole) \ |
279 V(LoadField) \ | 279 V(CheckTaggedHole) \ |
280 V(LoadBuffer) \ | 280 V(Allocate) \ |
281 V(LoadElement) \ | 281 V(LoadField) \ |
282 V(StoreField) \ | 282 V(LoadBuffer) \ |
283 V(StoreBuffer) \ | 283 V(LoadElement) \ |
284 V(StoreElement) \ | 284 V(StoreField) \ |
285 V(ObjectIsCallable) \ | 285 V(StoreBuffer) \ |
286 V(ObjectIsNumber) \ | 286 V(StoreElement) \ |
287 V(ObjectIsReceiver) \ | 287 V(ObjectIsCallable) \ |
288 V(ObjectIsSmi) \ | 288 V(ObjectIsNumber) \ |
289 V(ObjectIsString) \ | 289 V(ObjectIsReceiver) \ |
290 V(ObjectIsUndetectable) \ | 290 V(ObjectIsSmi) \ |
| 291 V(ObjectIsString) \ |
| 292 V(ObjectIsUndetectable) \ |
291 V(TransitionElementsKind) | 293 V(TransitionElementsKind) |
292 | 294 |
293 #define SIMPLIFIED_OP_LIST(V) \ | 295 #define SIMPLIFIED_OP_LIST(V) \ |
294 SIMPLIFIED_CHANGE_OP_LIST(V) \ | 296 SIMPLIFIED_CHANGE_OP_LIST(V) \ |
295 SIMPLIFIED_CHECKED_OP_LIST(V) \ | 297 SIMPLIFIED_CHECKED_OP_LIST(V) \ |
296 SIMPLIFIED_COMPARE_BINOP_LIST(V) \ | 298 SIMPLIFIED_COMPARE_BINOP_LIST(V) \ |
297 SIMPLIFIED_OTHER_OP_LIST(V) | 299 SIMPLIFIED_OTHER_OP_LIST(V) |
298 | 300 |
299 // Opcodes for Machine-level operators. | 301 // Opcodes for Machine-level operators. |
300 #define MACHINE_COMPARE_BINOP_LIST(V) \ | 302 #define MACHINE_COMPARE_BINOP_LIST(V) \ |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 } | 736 } |
735 }; | 737 }; |
736 | 738 |
737 std::ostream& operator<<(std::ostream&, IrOpcode::Value); | 739 std::ostream& operator<<(std::ostream&, IrOpcode::Value); |
738 | 740 |
739 } // namespace compiler | 741 } // namespace compiler |
740 } // namespace internal | 742 } // namespace internal |
741 } // namespace v8 | 743 } // namespace v8 |
742 | 744 |
743 #endif // V8_COMPILER_OPCODES_H_ | 745 #endif // V8_COMPILER_OPCODES_H_ |
OLD | NEW |