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 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 V(NumberSqrt) \ | 294 V(NumberSqrt) \ |
295 V(NumberTan) \ | 295 V(NumberTan) \ |
296 V(NumberTanh) \ | 296 V(NumberTanh) \ |
297 V(NumberTrunc) \ | 297 V(NumberTrunc) \ |
298 V(NumberToBoolean) \ | 298 V(NumberToBoolean) \ |
299 V(NumberToInt32) \ | 299 V(NumberToInt32) \ |
300 V(NumberToUint32) \ | 300 V(NumberToUint32) \ |
301 V(NumberToUint8Clamped) \ | 301 V(NumberToUint8Clamped) \ |
302 V(NumberSilenceNaN) | 302 V(NumberSilenceNaN) |
303 | 303 |
| 304 #define SIMPLIFIED_SPECULATIVE_NUMBER_UNOP_LIST(V) V(SpeculativeToNumber) |
| 305 |
304 #define SIMPLIFIED_OTHER_OP_LIST(V) \ | 306 #define SIMPLIFIED_OTHER_OP_LIST(V) \ |
305 V(PlainPrimitiveToNumber) \ | 307 V(PlainPrimitiveToNumber) \ |
306 V(PlainPrimitiveToWord32) \ | 308 V(PlainPrimitiveToWord32) \ |
307 V(PlainPrimitiveToFloat64) \ | 309 V(PlainPrimitiveToFloat64) \ |
308 V(BooleanNot) \ | 310 V(BooleanNot) \ |
309 V(StringCharAt) \ | 311 V(StringCharAt) \ |
310 V(StringCharCodeAt) \ | 312 V(StringCharCodeAt) \ |
311 V(StringFromCharCode) \ | 313 V(StringFromCharCode) \ |
312 V(StringFromCodePoint) \ | 314 V(StringFromCodePoint) \ |
313 V(StringIndexOf) \ | 315 V(StringIndexOf) \ |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 V(MaybeGrowFastElements) \ | 351 V(MaybeGrowFastElements) \ |
350 V(TransitionElementsKind) | 352 V(TransitionElementsKind) |
351 | 353 |
352 #define SIMPLIFIED_OP_LIST(V) \ | 354 #define SIMPLIFIED_OP_LIST(V) \ |
353 SIMPLIFIED_CHANGE_OP_LIST(V) \ | 355 SIMPLIFIED_CHANGE_OP_LIST(V) \ |
354 SIMPLIFIED_CHECKED_OP_LIST(V) \ | 356 SIMPLIFIED_CHECKED_OP_LIST(V) \ |
355 SIMPLIFIED_COMPARE_BINOP_LIST(V) \ | 357 SIMPLIFIED_COMPARE_BINOP_LIST(V) \ |
356 SIMPLIFIED_NUMBER_BINOP_LIST(V) \ | 358 SIMPLIFIED_NUMBER_BINOP_LIST(V) \ |
357 SIMPLIFIED_SPECULATIVE_NUMBER_BINOP_LIST(V) \ | 359 SIMPLIFIED_SPECULATIVE_NUMBER_BINOP_LIST(V) \ |
358 SIMPLIFIED_NUMBER_UNOP_LIST(V) \ | 360 SIMPLIFIED_NUMBER_UNOP_LIST(V) \ |
| 361 SIMPLIFIED_SPECULATIVE_NUMBER_UNOP_LIST(V) \ |
359 SIMPLIFIED_OTHER_OP_LIST(V) | 362 SIMPLIFIED_OTHER_OP_LIST(V) |
360 | 363 |
361 // Opcodes for Machine-level operators. | 364 // Opcodes for Machine-level operators. |
362 #define MACHINE_COMPARE_BINOP_LIST(V) \ | 365 #define MACHINE_COMPARE_BINOP_LIST(V) \ |
363 V(Word32Equal) \ | 366 V(Word32Equal) \ |
364 V(Word64Equal) \ | 367 V(Word64Equal) \ |
365 V(Int32LessThan) \ | 368 V(Int32LessThan) \ |
366 V(Int32LessThanOrEqual) \ | 369 V(Int32LessThanOrEqual) \ |
367 V(Uint32LessThan) \ | 370 V(Uint32LessThan) \ |
368 V(Uint32LessThanOrEqual) \ | 371 V(Uint32LessThanOrEqual) \ |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 } | 798 } |
796 }; | 799 }; |
797 | 800 |
798 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, IrOpcode::Value); | 801 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, IrOpcode::Value); |
799 | 802 |
800 } // namespace compiler | 803 } // namespace compiler |
801 } // namespace internal | 804 } // namespace internal |
802 } // namespace v8 | 805 } // namespace v8 |
803 | 806 |
804 #endif // V8_COMPILER_OPCODES_H_ | 807 #endif // V8_COMPILER_OPCODES_H_ |
OLD | NEW |