OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_WASM_OPCODES_H_ | 5 #ifndef V8_WASM_OPCODES_H_ |
6 #define V8_WASM_OPCODES_H_ | 6 #define V8_WASM_OPCODES_H_ |
7 | 7 |
8 #include "src/globals.h" | 8 #include "src/globals.h" |
9 #include "src/machine-type.h" | 9 #include "src/machine-type.h" |
10 #include "src/runtime/runtime.h" | 10 #include "src/runtime/runtime.h" |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 V(I8x16LtU, 0xe572, s1x16_ss) \ | 383 V(I8x16LtU, 0xe572, s1x16_ss) \ |
384 V(I8x16LeU, 0xe573, s1x16_ss) \ | 384 V(I8x16LeU, 0xe573, s1x16_ss) \ |
385 V(I8x16GtU, 0xe574, s1x16_ss) \ | 385 V(I8x16GtU, 0xe574, s1x16_ss) \ |
386 V(I8x16GeU, 0xe575, s1x16_ss) \ | 386 V(I8x16GeU, 0xe575, s1x16_ss) \ |
387 V(I8x16SConvertI16x8, 0xe59e, s_ss) \ | 387 V(I8x16SConvertI16x8, 0xe59e, s_ss) \ |
388 V(I8x16UConvertI16x8, 0xe59f, s_ss) \ | 388 V(I8x16UConvertI16x8, 0xe59f, s_ss) \ |
389 V(S128And, 0xe576, s_ss) \ | 389 V(S128And, 0xe576, s_ss) \ |
390 V(S128Or, 0xe577, s_ss) \ | 390 V(S128Or, 0xe577, s_ss) \ |
391 V(S128Xor, 0xe578, s_ss) \ | 391 V(S128Xor, 0xe578, s_ss) \ |
392 V(S128Not, 0xe579, s_s) \ | 392 V(S128Not, 0xe579, s_s) \ |
| 393 V(S32x4ZipLeft, 0xe5a0, s_ss) \ |
| 394 V(S32x4ZipRight, 0xe5a1, s_ss) \ |
| 395 V(S32x4UnzipLeft, 0xe5a2, s_ss) \ |
| 396 V(S32x4UnzipRight, 0xe5a3, s_ss) \ |
| 397 V(S32x4TransposeLeft, 0xe5a4, s_ss) \ |
| 398 V(S32x4TransposeRight, 0xe5a5, s_ss) \ |
393 V(S32x4Select, 0xe52c, s_s1x4ss) \ | 399 V(S32x4Select, 0xe52c, s_s1x4ss) \ |
394 V(S32x4Swizzle, 0xe52d, s_s) \ | 400 V(S16x8ZipLeft, 0xe5a6, s_ss) \ |
395 V(S32x4Shuffle, 0xe52e, s_ss) \ | 401 V(S16x8ZipRight, 0xe5a7, s_ss) \ |
| 402 V(S16x8UnzipLeft, 0xe5a8, s_ss) \ |
| 403 V(S16x8UnzipRight, 0xe5a9, s_ss) \ |
| 404 V(S16x8TransposeLeft, 0xe5aa, s_ss) \ |
| 405 V(S16x8TransposeRight, 0xe5ab, s_ss) \ |
396 V(S16x8Select, 0xe54b, s_s1x8ss) \ | 406 V(S16x8Select, 0xe54b, s_s1x8ss) \ |
397 V(S16x8Swizzle, 0xe54c, s_s) \ | 407 V(S8x16ZipLeft, 0xe5ac, s_ss) \ |
398 V(S16x8Shuffle, 0xe54d, s_ss) \ | 408 V(S8x16ZipRight, 0xe5ad, s_ss) \ |
| 409 V(S8x16UnzipLeft, 0xe5ae, s_ss) \ |
| 410 V(S8x16UnzipRight, 0xe5af, s_ss) \ |
| 411 V(S8x16TransposeLeft, 0xe5b0, s_ss) \ |
| 412 V(S8x16TransposeRight, 0xe5b1, s_ss) \ |
399 V(S8x16Select, 0xe56a, s_s1x16ss) \ | 413 V(S8x16Select, 0xe56a, s_s1x16ss) \ |
400 V(S8x16Swizzle, 0xe56b, s_s) \ | 414 V(S32x2Reverse, 0xe5b2, s_s) \ |
401 V(S8x16Shuffle, 0xe56c, s_ss) \ | 415 V(S16x4Reverse, 0xe5b3, s_s) \ |
| 416 V(S16x2Reverse, 0xe5b4, s_s) \ |
| 417 V(S8x8Reverse, 0xe5b5, s_s) \ |
| 418 V(S8x4Reverse, 0xe5b6, s_s) \ |
| 419 V(S8x2Reverse, 0xe5b7, s_s) \ |
402 V(S1x4And, 0xe580, s1x4_s1x4s1x4) \ | 420 V(S1x4And, 0xe580, s1x4_s1x4s1x4) \ |
403 V(S1x4Or, 0xe581, s1x4_s1x4s1x4) \ | 421 V(S1x4Or, 0xe581, s1x4_s1x4s1x4) \ |
404 V(S1x4Xor, 0xe582, s1x4_s1x4s1x4) \ | 422 V(S1x4Xor, 0xe582, s1x4_s1x4s1x4) \ |
405 V(S1x4Not, 0xe583, s1x4_s1x4) \ | 423 V(S1x4Not, 0xe583, s1x4_s1x4) \ |
406 V(S1x4AnyTrue, 0xe584, i_s1x4) \ | 424 V(S1x4AnyTrue, 0xe584, i_s1x4) \ |
407 V(S1x4AllTrue, 0xe585, i_s1x4) \ | 425 V(S1x4AllTrue, 0xe585, i_s1x4) \ |
408 V(S1x8And, 0xe586, s1x8_s1x8s1x8) \ | 426 V(S1x8And, 0xe586, s1x8_s1x8s1x8) \ |
409 V(S1x8Or, 0xe587, s1x8_s1x8s1x8) \ | 427 V(S1x8Or, 0xe587, s1x8_s1x8s1x8) \ |
410 V(S1x8Xor, 0xe588, s1x8_s1x8s1x8) \ | 428 V(S1x8Xor, 0xe588, s1x8_s1x8s1x8) \ |
411 V(S1x8Not, 0xe589, s1x8_s1x8) \ | 429 V(S1x8Not, 0xe589, s1x8_s1x8) \ |
(...skipping 16 matching lines...) Expand all Loading... |
428 V(I32x4ShrU, 0xe532, _) \ | 446 V(I32x4ShrU, 0xe532, _) \ |
429 V(I16x8ExtractLane, 0xe539, _) \ | 447 V(I16x8ExtractLane, 0xe539, _) \ |
430 V(I16x8ReplaceLane, 0xe53a, _) \ | 448 V(I16x8ReplaceLane, 0xe53a, _) \ |
431 V(I16x8Shl, 0xe543, _) \ | 449 V(I16x8Shl, 0xe543, _) \ |
432 V(I16x8ShrS, 0xe544, _) \ | 450 V(I16x8ShrS, 0xe544, _) \ |
433 V(I16x8ShrU, 0xe552, _) \ | 451 V(I16x8ShrU, 0xe552, _) \ |
434 V(I8x16ExtractLane, 0xe558, _) \ | 452 V(I8x16ExtractLane, 0xe558, _) \ |
435 V(I8x16ReplaceLane, 0xe559, _) \ | 453 V(I8x16ReplaceLane, 0xe559, _) \ |
436 V(I8x16Shl, 0xe562, _) \ | 454 V(I8x16Shl, 0xe562, _) \ |
437 V(I8x16ShrS, 0xe563, _) \ | 455 V(I8x16ShrS, 0xe563, _) \ |
438 V(I8x16ShrU, 0xe571, _) | 456 V(I8x16ShrU, 0xe571, _) \ |
| 457 V(S8x16Concat, 0xe5b8, _) |
439 | 458 |
440 #define FOREACH_ATOMIC_OPCODE(V) \ | 459 #define FOREACH_ATOMIC_OPCODE(V) \ |
441 V(I32AtomicAdd8S, 0xe601, i_ii) \ | 460 V(I32AtomicAdd8S, 0xe601, i_ii) \ |
442 V(I32AtomicAdd8U, 0xe602, i_ii) \ | 461 V(I32AtomicAdd8U, 0xe602, i_ii) \ |
443 V(I32AtomicAdd16S, 0xe603, i_ii) \ | 462 V(I32AtomicAdd16S, 0xe603, i_ii) \ |
444 V(I32AtomicAdd16U, 0xe604, i_ii) \ | 463 V(I32AtomicAdd16U, 0xe604, i_ii) \ |
445 V(I32AtomicAdd, 0xe605, i_ii) \ | 464 V(I32AtomicAdd, 0xe605, i_ii) \ |
446 V(I32AtomicAnd8S, 0xe606, i_ii) \ | 465 V(I32AtomicAnd8S, 0xe606, i_ii) \ |
447 V(I32AtomicAnd8U, 0xe607, i_ii) \ | 466 V(I32AtomicAnd8U, 0xe607, i_ii) \ |
448 V(I32AtomicAnd16S, 0xe608, i_ii) \ | 467 V(I32AtomicAnd16S, 0xe608, i_ii) \ |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 default: | 775 default: |
757 return "<unknown>"; | 776 return "<unknown>"; |
758 } | 777 } |
759 } | 778 } |
760 }; | 779 }; |
761 } // namespace wasm | 780 } // namespace wasm |
762 } // namespace internal | 781 } // namespace internal |
763 } // namespace v8 | 782 } // namespace v8 |
764 | 783 |
765 #endif // V8_WASM_OPCODES_H_ | 784 #endif // V8_WASM_OPCODES_H_ |
OLD | NEW |