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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 V(I32x4Mul, 0xe521, s_ss) \ | 314 V(I32x4Mul, 0xe521, s_ss) \ |
315 V(I32x4MinS, 0xe522, s_ss) \ | 315 V(I32x4MinS, 0xe522, s_ss) \ |
316 V(I32x4MaxS, 0xe523, s_ss) \ | 316 V(I32x4MaxS, 0xe523, s_ss) \ |
317 V(I32x4Eq, 0xe526, s1x4_ss) \ | 317 V(I32x4Eq, 0xe526, s1x4_ss) \ |
318 V(I32x4Ne, 0xe527, s1x4_ss) \ | 318 V(I32x4Ne, 0xe527, s1x4_ss) \ |
319 V(I32x4LtS, 0xe528, s1x4_ss) \ | 319 V(I32x4LtS, 0xe528, s1x4_ss) \ |
320 V(I32x4LeS, 0xe529, s1x4_ss) \ | 320 V(I32x4LeS, 0xe529, s1x4_ss) \ |
321 V(I32x4GtS, 0xe52a, s1x4_ss) \ | 321 V(I32x4GtS, 0xe52a, s1x4_ss) \ |
322 V(I32x4GeS, 0xe52b, s1x4_ss) \ | 322 V(I32x4GeS, 0xe52b, s1x4_ss) \ |
323 V(I32x4SConvertF32x4, 0xe52f, s_s) \ | 323 V(I32x4SConvertF32x4, 0xe52f, s_s) \ |
| 324 V(I32x4UConvertF32x4, 0xe537, s_s) \ |
| 325 V(I32x4SConvertI16x8Low, 0xe594, s_s) \ |
| 326 V(I32x4SConvertI16x8High, 0xe595, s_s) \ |
| 327 V(I32x4UConvertI16x8Low, 0xe596, s_s) \ |
| 328 V(I32x4UConvertI16x8High, 0xe597, s_s) \ |
324 V(I32x4MinU, 0xe530, s_ss) \ | 329 V(I32x4MinU, 0xe530, s_ss) \ |
325 V(I32x4MaxU, 0xe531, s_ss) \ | 330 V(I32x4MaxU, 0xe531, s_ss) \ |
326 V(I32x4LtU, 0xe533, s1x4_ss) \ | 331 V(I32x4LtU, 0xe533, s1x4_ss) \ |
327 V(I32x4LeU, 0xe534, s1x4_ss) \ | 332 V(I32x4LeU, 0xe534, s1x4_ss) \ |
328 V(I32x4GtU, 0xe535, s1x4_ss) \ | 333 V(I32x4GtU, 0xe535, s1x4_ss) \ |
329 V(I32x4GeU, 0xe536, s1x4_ss) \ | 334 V(I32x4GeU, 0xe536, s1x4_ss) \ |
330 V(I32x4UConvertF32x4, 0xe537, s_s) \ | |
331 V(I16x8Splat, 0xe538, s_i) \ | 335 V(I16x8Splat, 0xe538, s_i) \ |
332 V(I16x8Neg, 0xe53b, s_s) \ | 336 V(I16x8Neg, 0xe53b, s_s) \ |
333 V(I16x8Add, 0xe53c, s_ss) \ | 337 V(I16x8Add, 0xe53c, s_ss) \ |
334 V(I16x8AddSaturateS, 0xe53d, s_ss) \ | 338 V(I16x8AddSaturateS, 0xe53d, s_ss) \ |
335 V(I16x8Sub, 0xe53e, s_ss) \ | 339 V(I16x8Sub, 0xe53e, s_ss) \ |
336 V(I16x8SubSaturateS, 0xe53f, s_ss) \ | 340 V(I16x8SubSaturateS, 0xe53f, s_ss) \ |
337 V(I16x8Mul, 0xe540, s_ss) \ | 341 V(I16x8Mul, 0xe540, s_ss) \ |
338 V(I16x8MinS, 0xe541, s_ss) \ | 342 V(I16x8MinS, 0xe541, s_ss) \ |
339 V(I16x8MaxS, 0xe542, s_ss) \ | 343 V(I16x8MaxS, 0xe542, s_ss) \ |
340 V(I16x8Eq, 0xe545, s1x8_ss) \ | 344 V(I16x8Eq, 0xe545, s1x8_ss) \ |
341 V(I16x8Ne, 0xe546, s1x8_ss) \ | 345 V(I16x8Ne, 0xe546, s1x8_ss) \ |
342 V(I16x8LtS, 0xe547, s1x8_ss) \ | 346 V(I16x8LtS, 0xe547, s1x8_ss) \ |
343 V(I16x8LeS, 0xe548, s1x8_ss) \ | 347 V(I16x8LeS, 0xe548, s1x8_ss) \ |
344 V(I16x8GtS, 0xe549, s1x8_ss) \ | 348 V(I16x8GtS, 0xe549, s1x8_ss) \ |
345 V(I16x8GeS, 0xe54a, s1x8_ss) \ | 349 V(I16x8GeS, 0xe54a, s1x8_ss) \ |
346 V(I16x8AddSaturateU, 0xe54e, s_ss) \ | 350 V(I16x8AddSaturateU, 0xe54e, s_ss) \ |
347 V(I16x8SubSaturateU, 0xe54f, s_ss) \ | 351 V(I16x8SubSaturateU, 0xe54f, s_ss) \ |
348 V(I16x8MinU, 0xe550, s_ss) \ | 352 V(I16x8MinU, 0xe550, s_ss) \ |
349 V(I16x8MaxU, 0xe551, s_ss) \ | 353 V(I16x8MaxU, 0xe551, s_ss) \ |
350 V(I16x8LtU, 0xe553, s1x8_ss) \ | 354 V(I16x8LtU, 0xe553, s1x8_ss) \ |
351 V(I16x8LeU, 0xe554, s1x8_ss) \ | 355 V(I16x8LeU, 0xe554, s1x8_ss) \ |
352 V(I16x8GtU, 0xe555, s1x8_ss) \ | 356 V(I16x8GtU, 0xe555, s1x8_ss) \ |
353 V(I16x8GeU, 0xe556, s1x8_ss) \ | 357 V(I16x8GeU, 0xe556, s1x8_ss) \ |
| 358 V(I16x8SConvertI32x4, 0xe598, s_ss) \ |
| 359 V(I16x8UConvertI32x4, 0xe599, s_ss) \ |
| 360 V(I16x8SConvertI8x16Low, 0xe59a, s_s) \ |
| 361 V(I16x8SConvertI8x16High, 0xe59b, s_s) \ |
| 362 V(I16x8UConvertI8x16Low, 0xe59c, s_s) \ |
| 363 V(I16x8UConvertI8x16High, 0xe59d, s_s) \ |
354 V(I8x16Splat, 0xe557, s_i) \ | 364 V(I8x16Splat, 0xe557, s_i) \ |
355 V(I8x16Neg, 0xe55a, s_s) \ | 365 V(I8x16Neg, 0xe55a, s_s) \ |
356 V(I8x16Add, 0xe55b, s_ss) \ | 366 V(I8x16Add, 0xe55b, s_ss) \ |
357 V(I8x16AddSaturateS, 0xe55c, s_ss) \ | 367 V(I8x16AddSaturateS, 0xe55c, s_ss) \ |
358 V(I8x16Sub, 0xe55d, s_ss) \ | 368 V(I8x16Sub, 0xe55d, s_ss) \ |
359 V(I8x16SubSaturateS, 0xe55e, s_ss) \ | 369 V(I8x16SubSaturateS, 0xe55e, s_ss) \ |
360 V(I8x16Mul, 0xe55f, s_ss) \ | 370 V(I8x16Mul, 0xe55f, s_ss) \ |
361 V(I8x16MinS, 0xe560, s_ss) \ | 371 V(I8x16MinS, 0xe560, s_ss) \ |
362 V(I8x16MaxS, 0xe561, s_ss) \ | 372 V(I8x16MaxS, 0xe561, s_ss) \ |
363 V(I8x16Eq, 0xe564, s1x16_ss) \ | 373 V(I8x16Eq, 0xe564, s1x16_ss) \ |
364 V(I8x16Ne, 0xe565, s1x16_ss) \ | 374 V(I8x16Ne, 0xe565, s1x16_ss) \ |
365 V(I8x16LtS, 0xe566, s1x16_ss) \ | 375 V(I8x16LtS, 0xe566, s1x16_ss) \ |
366 V(I8x16LeS, 0xe567, s1x16_ss) \ | 376 V(I8x16LeS, 0xe567, s1x16_ss) \ |
367 V(I8x16GtS, 0xe568, s1x16_ss) \ | 377 V(I8x16GtS, 0xe568, s1x16_ss) \ |
368 V(I8x16GeS, 0xe569, s1x16_ss) \ | 378 V(I8x16GeS, 0xe569, s1x16_ss) \ |
369 V(I8x16AddSaturateU, 0xe56d, s_ss) \ | 379 V(I8x16AddSaturateU, 0xe56d, s_ss) \ |
370 V(I8x16SubSaturateU, 0xe56e, s_ss) \ | 380 V(I8x16SubSaturateU, 0xe56e, s_ss) \ |
371 V(I8x16MinU, 0xe56f, s_ss) \ | 381 V(I8x16MinU, 0xe56f, s_ss) \ |
372 V(I8x16MaxU, 0xe570, s_ss) \ | 382 V(I8x16MaxU, 0xe570, s_ss) \ |
373 V(I8x16LtU, 0xe572, s1x16_ss) \ | 383 V(I8x16LtU, 0xe572, s1x16_ss) \ |
374 V(I8x16LeU, 0xe573, s1x16_ss) \ | 384 V(I8x16LeU, 0xe573, s1x16_ss) \ |
375 V(I8x16GtU, 0xe574, s1x16_ss) \ | 385 V(I8x16GtU, 0xe574, s1x16_ss) \ |
376 V(I8x16GeU, 0xe575, s1x16_ss) \ | 386 V(I8x16GeU, 0xe575, s1x16_ss) \ |
| 387 V(I8x16SConvertI16x8, 0xe59e, s_ss) \ |
| 388 V(I8x16UConvertI16x8, 0xe59f, s_ss) \ |
377 V(S128And, 0xe576, s_ss) \ | 389 V(S128And, 0xe576, s_ss) \ |
378 V(S128Or, 0xe577, s_ss) \ | 390 V(S128Or, 0xe577, s_ss) \ |
379 V(S128Xor, 0xe578, s_ss) \ | 391 V(S128Xor, 0xe578, s_ss) \ |
380 V(S128Not, 0xe579, s_s) \ | 392 V(S128Not, 0xe579, s_s) \ |
381 V(S32x4Select, 0xe52c, s_s1x4ss) \ | 393 V(S32x4Select, 0xe52c, s_s1x4ss) \ |
382 V(S32x4Swizzle, 0xe52d, s_s) \ | 394 V(S32x4Swizzle, 0xe52d, s_s) \ |
383 V(S32x4Shuffle, 0xe52e, s_ss) \ | 395 V(S32x4Shuffle, 0xe52e, s_ss) \ |
384 V(S16x8Select, 0xe54b, s_s1x8ss) \ | 396 V(S16x8Select, 0xe54b, s_s1x8ss) \ |
385 V(S16x8Swizzle, 0xe54c, s_s) \ | 397 V(S16x8Swizzle, 0xe54c, s_s) \ |
386 V(S16x8Shuffle, 0xe54d, s_ss) \ | 398 V(S16x8Shuffle, 0xe54d, s_ss) \ |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 default: | 756 default: |
745 return "<unknown>"; | 757 return "<unknown>"; |
746 } | 758 } |
747 } | 759 } |
748 }; | 760 }; |
749 } // namespace wasm | 761 } // namespace wasm |
750 } // namespace internal | 762 } // namespace internal |
751 } // namespace v8 | 763 } // namespace v8 |
752 | 764 |
753 #endif // V8_WASM_OPCODES_H_ | 765 #endif // V8_WASM_OPCODES_H_ |
OLD | NEW |