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/signature.h" | 10 #include "src/signature.h" |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 V(F32x4Min, 0xe50c, s_ss) \ | 289 V(F32x4Min, 0xe50c, s_ss) \ |
290 V(F32x4Max, 0xe50d, s_ss) \ | 290 V(F32x4Max, 0xe50d, s_ss) \ |
291 V(F32x4MinNum, 0xe50e, s_ss) \ | 291 V(F32x4MinNum, 0xe50e, s_ss) \ |
292 V(F32x4MaxNum, 0xe50f, s_ss) \ | 292 V(F32x4MaxNum, 0xe50f, s_ss) \ |
293 V(F32x4Eq, 0xe510, s_ss) \ | 293 V(F32x4Eq, 0xe510, s_ss) \ |
294 V(F32x4Ne, 0xe511, s_ss) \ | 294 V(F32x4Ne, 0xe511, s_ss) \ |
295 V(F32x4Lt, 0xe512, s_ss) \ | 295 V(F32x4Lt, 0xe512, s_ss) \ |
296 V(F32x4Le, 0xe513, s_ss) \ | 296 V(F32x4Le, 0xe513, s_ss) \ |
297 V(F32x4Gt, 0xe514, s_ss) \ | 297 V(F32x4Gt, 0xe514, s_ss) \ |
298 V(F32x4Ge, 0xe515, s_ss) \ | 298 V(F32x4Ge, 0xe515, s_ss) \ |
299 V(F32x4Select, 0xe516, s_sss) \ | |
300 V(F32x4Swizzle, 0xe517, s_s) \ | |
301 V(F32x4Shuffle, 0xe518, s_ss) \ | |
302 V(F32x4FromInt32x4, 0xe519, s_s) \ | 299 V(F32x4FromInt32x4, 0xe519, s_s) \ |
303 V(F32x4FromUint32x4, 0xe51a, s_s) \ | 300 V(F32x4FromUint32x4, 0xe51a, s_s) \ |
304 V(I32x4Splat, 0xe51b, s_i) \ | 301 V(I32x4Splat, 0xe51b, s_i) \ |
305 V(I32x4ReplaceLane, 0xe51d, s_sii) \ | 302 V(I32x4ReplaceLane, 0xe51d, s_sii) \ |
306 V(I32x4Neg, 0xe51e, s_s) \ | 303 V(I32x4Neg, 0xe51e, s_s) \ |
307 V(I32x4Add, 0xe51f, s_ss) \ | 304 V(I32x4Add, 0xe51f, s_ss) \ |
308 V(I32x4Sub, 0xe520, s_ss) \ | 305 V(I32x4Sub, 0xe520, s_ss) \ |
309 V(I32x4Mul, 0xe521, s_ss) \ | 306 V(I32x4Mul, 0xe521, s_ss) \ |
310 V(I32x4Min_s, 0xe522, s_ss) \ | 307 V(I32x4Min_s, 0xe522, s_ss) \ |
311 V(I32x4Max_s, 0xe523, s_ss) \ | 308 V(I32x4Max_s, 0xe523, s_ss) \ |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 V(I8x16Min_u, 0xe56f, s_ss) \ | 382 V(I8x16Min_u, 0xe56f, s_ss) \ |
386 V(I8x16Max_u, 0xe570, s_ss) \ | 383 V(I8x16Max_u, 0xe570, s_ss) \ |
387 V(I8x16Shr_u, 0xe571, s_ss) \ | 384 V(I8x16Shr_u, 0xe571, s_ss) \ |
388 V(I8x16Lt_u, 0xe572, s_ss) \ | 385 V(I8x16Lt_u, 0xe572, s_ss) \ |
389 V(I8x16Le_u, 0xe573, s_ss) \ | 386 V(I8x16Le_u, 0xe573, s_ss) \ |
390 V(I8x16Gt_u, 0xe574, s_ss) \ | 387 V(I8x16Gt_u, 0xe574, s_ss) \ |
391 V(I8x16Ge_u, 0xe575, s_ss) \ | 388 V(I8x16Ge_u, 0xe575, s_ss) \ |
392 V(S128And, 0xe576, s_ss) \ | 389 V(S128And, 0xe576, s_ss) \ |
393 V(S128Ior, 0xe577, s_ss) \ | 390 V(S128Ior, 0xe577, s_ss) \ |
394 V(S128Xor, 0xe578, s_ss) \ | 391 V(S128Xor, 0xe578, s_ss) \ |
395 V(S128Not, 0xe579, s_s) | 392 V(S128Not, 0xe579, s_s) \ |
| 393 V(S32x4Select, 0xe580, s_sss) \ |
| 394 V(S32x4Swizzle, 0xe581, s_s) \ |
| 395 V(S32x4Shuffle, 0xe582, s_ss) |
396 | 396 |
397 #define FOREACH_SIMD_1_OPERAND_OPCODE(V) \ | 397 #define FOREACH_SIMD_1_OPERAND_OPCODE(V) \ |
398 V(F32x4ExtractLane, 0xe501, _) \ | 398 V(F32x4ExtractLane, 0xe501, _) \ |
399 V(I32x4ExtractLane, 0xe51c, _) \ | 399 V(I32x4ExtractLane, 0xe51c, _) \ |
400 V(I16x8ExtractLane, 0xe539, _) \ | 400 V(I16x8ExtractLane, 0xe539, _) \ |
401 V(I8x16ExtractLane, 0xe558, _) | 401 V(I8x16ExtractLane, 0xe558, _) |
402 | 402 |
403 #define FOREACH_ATOMIC_OPCODE(V) \ | 403 #define FOREACH_ATOMIC_OPCODE(V) \ |
404 V(I32AtomicAdd8S, 0xe601, i_ii) \ | 404 V(I32AtomicAdd8S, 0xe601, i_ii) \ |
405 V(I32AtomicAdd8U, 0xe602, i_ii) \ | 405 V(I32AtomicAdd8U, 0xe602, i_ii) \ |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 default: | 680 default: |
681 return "<unknown>"; | 681 return "<unknown>"; |
682 } | 682 } |
683 } | 683 } |
684 }; | 684 }; |
685 } // namespace wasm | 685 } // namespace wasm |
686 } // namespace internal | 686 } // namespace internal |
687 } // namespace v8 | 687 } // namespace v8 |
688 | 688 |
689 #endif // V8_WASM_OPCODES_H_ | 689 #endif // V8_WASM_OPCODES_H_ |
OLD | NEW |