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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 V(I8x16MinU, 0xe56f, s_ss) \ | 371 V(I8x16MinU, 0xe56f, s_ss) \ |
372 V(I8x16MaxU, 0xe570, s_ss) \ | 372 V(I8x16MaxU, 0xe570, s_ss) \ |
373 V(I8x16LtU, 0xe572, s1x16_ss) \ | 373 V(I8x16LtU, 0xe572, s1x16_ss) \ |
374 V(I8x16LeU, 0xe573, s1x16_ss) \ | 374 V(I8x16LeU, 0xe573, s1x16_ss) \ |
375 V(I8x16GtU, 0xe574, s1x16_ss) \ | 375 V(I8x16GtU, 0xe574, s1x16_ss) \ |
376 V(I8x16GeU, 0xe575, s1x16_ss) \ | 376 V(I8x16GeU, 0xe575, s1x16_ss) \ |
377 V(S128And, 0xe576, s_ss) \ | 377 V(S128And, 0xe576, s_ss) \ |
378 V(S128Or, 0xe577, s_ss) \ | 378 V(S128Or, 0xe577, s_ss) \ |
379 V(S128Xor, 0xe578, s_ss) \ | 379 V(S128Xor, 0xe578, s_ss) \ |
380 V(S128Not, 0xe579, s_s) \ | 380 V(S128Not, 0xe579, s_s) \ |
| 381 V(S32x4ZipLeft, 0xe596, s_ss) \ |
| 382 V(S32x4ZipRight, 0xe597, s_ss) \ |
| 383 V(S32x4UnzipLeft, 0xe598, s_ss) \ |
| 384 V(S32x4UnzipRight, 0xe599, s_ss) \ |
| 385 V(S32x4TransposeLeft, 0xe5a2, s_ss) \ |
| 386 V(S32x4TransposeRight, 0xe5a3, s_ss) \ |
381 V(S32x4Select, 0xe52c, s_s1x4ss) \ | 387 V(S32x4Select, 0xe52c, s_s1x4ss) \ |
382 V(S32x4Swizzle, 0xe52d, s_s) \ | 388 V(S16x8ZipLeft, 0xe59a, s_ss) \ |
383 V(S32x4Shuffle, 0xe52e, s_ss) \ | 389 V(S16x8ZipRight, 0xe59b, s_ss) \ |
| 390 V(S16x8UnzipLeft, 0xe59c, s_ss) \ |
| 391 V(S16x8UnzipRight, 0xe59d, s_ss) \ |
| 392 V(S16x8TransposeLeft, 0xe5a4, s_ss) \ |
| 393 V(S16x8TransposeRight, 0xe5a5, s_ss) \ |
384 V(S16x8Select, 0xe54b, s_s1x8ss) \ | 394 V(S16x8Select, 0xe54b, s_s1x8ss) \ |
385 V(S16x8Swizzle, 0xe54c, s_s) \ | 395 V(S8x16ZipLeft, 0xe59e, s_ss) \ |
386 V(S16x8Shuffle, 0xe54d, s_ss) \ | 396 V(S8x16ZipRight, 0xe59f, s_ss) \ |
| 397 V(S8x16UnzipLeft, 0xe5a0, s_ss) \ |
| 398 V(S8x16UnzipRight, 0xe5a1, s_ss) \ |
| 399 V(S8x16TransposeLeft, 0xe5a6, s_ss) \ |
| 400 V(S8x16TransposeRight, 0xe5a7, s_ss) \ |
387 V(S8x16Select, 0xe56a, s_s1x16ss) \ | 401 V(S8x16Select, 0xe56a, s_s1x16ss) \ |
388 V(S8x16Swizzle, 0xe56b, s_s) \ | 402 V(S32x2Reverse, 0xe52e, s_s) \ |
389 V(S8x16Shuffle, 0xe56c, s_ss) \ | 403 V(S16x4Reverse, 0xe54c, s_s) \ |
| 404 V(S16x2Reverse, 0xe54d, s_s) \ |
| 405 V(S8x8Reverse, 0xe56b, s_s) \ |
| 406 V(S8x4Reverse, 0xe56c, s_s) \ |
| 407 V(S8x2Reverse, 0xe594, s_s) \ |
390 V(S1x4And, 0xe580, s1x4_s1x4s1x4) \ | 408 V(S1x4And, 0xe580, s1x4_s1x4s1x4) \ |
391 V(S1x4Or, 0xe581, s1x4_s1x4s1x4) \ | 409 V(S1x4Or, 0xe581, s1x4_s1x4s1x4) \ |
392 V(S1x4Xor, 0xe582, s1x4_s1x4s1x4) \ | 410 V(S1x4Xor, 0xe582, s1x4_s1x4s1x4) \ |
393 V(S1x4Not, 0xe583, s1x4_s1x4) \ | 411 V(S1x4Not, 0xe583, s1x4_s1x4) \ |
394 V(S1x4AnyTrue, 0xe584, i_s1x4) \ | 412 V(S1x4AnyTrue, 0xe584, i_s1x4) \ |
395 V(S1x4AllTrue, 0xe585, i_s1x4) \ | 413 V(S1x4AllTrue, 0xe585, i_s1x4) \ |
396 V(S1x8And, 0xe586, s1x8_s1x8s1x8) \ | 414 V(S1x8And, 0xe586, s1x8_s1x8s1x8) \ |
397 V(S1x8Or, 0xe587, s1x8_s1x8s1x8) \ | 415 V(S1x8Or, 0xe587, s1x8_s1x8s1x8) \ |
398 V(S1x8Xor, 0xe588, s1x8_s1x8s1x8) \ | 416 V(S1x8Xor, 0xe588, s1x8_s1x8s1x8) \ |
399 V(S1x8Not, 0xe589, s1x8_s1x8) \ | 417 V(S1x8Not, 0xe589, s1x8_s1x8) \ |
(...skipping 16 matching lines...) Expand all Loading... |
416 V(I32x4ShrU, 0xe532, _) \ | 434 V(I32x4ShrU, 0xe532, _) \ |
417 V(I16x8ExtractLane, 0xe539, _) \ | 435 V(I16x8ExtractLane, 0xe539, _) \ |
418 V(I16x8ReplaceLane, 0xe53a, _) \ | 436 V(I16x8ReplaceLane, 0xe53a, _) \ |
419 V(I16x8Shl, 0xe543, _) \ | 437 V(I16x8Shl, 0xe543, _) \ |
420 V(I16x8ShrS, 0xe544, _) \ | 438 V(I16x8ShrS, 0xe544, _) \ |
421 V(I16x8ShrU, 0xe552, _) \ | 439 V(I16x8ShrU, 0xe552, _) \ |
422 V(I8x16ExtractLane, 0xe558, _) \ | 440 V(I8x16ExtractLane, 0xe558, _) \ |
423 V(I8x16ReplaceLane, 0xe559, _) \ | 441 V(I8x16ReplaceLane, 0xe559, _) \ |
424 V(I8x16Shl, 0xe562, _) \ | 442 V(I8x16Shl, 0xe562, _) \ |
425 V(I8x16ShrS, 0xe563, _) \ | 443 V(I8x16ShrS, 0xe563, _) \ |
426 V(I8x16ShrU, 0xe571, _) | 444 V(I8x16ShrU, 0xe571, _) \ |
| 445 V(S8x16Concat, 0xe595, _) |
427 | 446 |
428 #define FOREACH_ATOMIC_OPCODE(V) \ | 447 #define FOREACH_ATOMIC_OPCODE(V) \ |
429 V(I32AtomicAdd8S, 0xe601, i_ii) \ | 448 V(I32AtomicAdd8S, 0xe601, i_ii) \ |
430 V(I32AtomicAdd8U, 0xe602, i_ii) \ | 449 V(I32AtomicAdd8U, 0xe602, i_ii) \ |
431 V(I32AtomicAdd16S, 0xe603, i_ii) \ | 450 V(I32AtomicAdd16S, 0xe603, i_ii) \ |
432 V(I32AtomicAdd16U, 0xe604, i_ii) \ | 451 V(I32AtomicAdd16U, 0xe604, i_ii) \ |
433 V(I32AtomicAdd, 0xe605, i_ii) \ | 452 V(I32AtomicAdd, 0xe605, i_ii) \ |
434 V(I32AtomicAnd8S, 0xe606, i_ii) \ | 453 V(I32AtomicAnd8S, 0xe606, i_ii) \ |
435 V(I32AtomicAnd8U, 0xe607, i_ii) \ | 454 V(I32AtomicAnd8U, 0xe607, i_ii) \ |
436 V(I32AtomicAnd16S, 0xe608, i_ii) \ | 455 V(I32AtomicAnd16S, 0xe608, i_ii) \ |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 default: | 763 default: |
745 return "<unknown>"; | 764 return "<unknown>"; |
746 } | 765 } |
747 } | 766 } |
748 }; | 767 }; |
749 } // namespace wasm | 768 } // namespace wasm |
750 } // namespace internal | 769 } // namespace internal |
751 } // namespace v8 | 770 } // namespace v8 |
752 | 771 |
753 #endif // V8_WASM_OPCODES_H_ | 772 #endif // V8_WASM_OPCODES_H_ |
OLD | NEW |