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_MACRO_GEN_H_ | 5 #ifndef V8_WASM_MACRO_GEN_H_ |
6 #define V8_WASM_MACRO_GEN_H_ | 6 #define V8_WASM_MACRO_GEN_H_ |
7 | 7 |
8 #include "src/wasm/wasm-opcodes.h" | 8 #include "src/wasm/wasm-opcodes.h" |
9 | 9 |
10 #include "src/zone-containers.h" | 10 #include "src/zone-containers.h" |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 #define WASM_F32_REINTERPRET_I32(x) x, kExprF32ReinterpretI32 | 572 #define WASM_F32_REINTERPRET_I32(x) x, kExprF32ReinterpretI32 |
573 #define WASM_F64_SCONVERT_I32(x) x, kExprF64SConvertI32 | 573 #define WASM_F64_SCONVERT_I32(x) x, kExprF64SConvertI32 |
574 #define WASM_F64_UCONVERT_I32(x) x, kExprF64UConvertI32 | 574 #define WASM_F64_UCONVERT_I32(x) x, kExprF64UConvertI32 |
575 #define WASM_F64_SCONVERT_I64(x) x, kExprF64SConvertI64 | 575 #define WASM_F64_SCONVERT_I64(x) x, kExprF64SConvertI64 |
576 #define WASM_F64_UCONVERT_I64(x) x, kExprF64UConvertI64 | 576 #define WASM_F64_UCONVERT_I64(x) x, kExprF64UConvertI64 |
577 #define WASM_F64_CONVERT_F32(x) x, kExprF64ConvertF32 | 577 #define WASM_F64_CONVERT_F32(x) x, kExprF64ConvertF32 |
578 #define WASM_F64_REINTERPRET_I64(x) x, kExprF64ReinterpretI64 | 578 #define WASM_F64_REINTERPRET_I64(x) x, kExprF64ReinterpretI64 |
579 #define WASM_I32_REINTERPRET_F32(x) x, kExprI32ReinterpretF32 | 579 #define WASM_I32_REINTERPRET_F32(x) x, kExprI32ReinterpretF32 |
580 #define WASM_I64_REINTERPRET_F64(x) x, kExprI64ReinterpretF64 | 580 #define WASM_I64_REINTERPRET_F64(x) x, kExprI64ReinterpretF64 |
581 | 581 |
| 582 //------------------------------------------------------------------------------ |
| 583 // Simd Operations. |
| 584 //------------------------------------------------------------------------------ |
| 585 #define WASM_SIMD_I32x4_SPLAT(x) x, kSimdPrefix, kExprI32x4Splat & 0xff |
| 586 #define WASM_SIMD_I32x4_EXTRACT_LANE(x, y) \ |
| 587 x, y, kSimdPrefix, kExprI32x4ExtractLane & 0xff |
| 588 |
582 #define SIG_ENTRY_v_v kWasmFunctionTypeForm, 0, 0 | 589 #define SIG_ENTRY_v_v kWasmFunctionTypeForm, 0, 0 |
583 #define SIZEOF_SIG_ENTRY_v_v 3 | 590 #define SIZEOF_SIG_ENTRY_v_v 3 |
584 | 591 |
585 #define SIG_ENTRY_v_x(a) kWasmFunctionTypeForm, 1, a, 0 | 592 #define SIG_ENTRY_v_x(a) kWasmFunctionTypeForm, 1, a, 0 |
586 #define SIG_ENTRY_v_xx(a, b) kWasmFunctionTypeForm, 2, a, b, 0 | 593 #define SIG_ENTRY_v_xx(a, b) kWasmFunctionTypeForm, 2, a, b, 0 |
587 #define SIG_ENTRY_v_xxx(a, b, c) kWasmFunctionTypeForm, 3, a, b, c, 0 | 594 #define SIG_ENTRY_v_xxx(a, b, c) kWasmFunctionTypeForm, 3, a, b, c, 0 |
588 #define SIZEOF_SIG_ENTRY_v_x 4 | 595 #define SIZEOF_SIG_ENTRY_v_x 4 |
589 #define SIZEOF_SIG_ENTRY_v_xx 5 | 596 #define SIZEOF_SIG_ENTRY_v_xx 5 |
590 #define SIZEOF_SIG_ENTRY_v_xxx 6 | 597 #define SIZEOF_SIG_ENTRY_v_xxx 6 |
591 | 598 |
592 #define SIG_ENTRY_x(r) kWasmFunctionTypeForm, 0, 1, r | 599 #define SIG_ENTRY_x(r) kWasmFunctionTypeForm, 0, 1, r |
593 #define SIG_ENTRY_x_x(r, a) kWasmFunctionTypeForm, 1, a, 1, r | 600 #define SIG_ENTRY_x_x(r, a) kWasmFunctionTypeForm, 1, a, 1, r |
594 #define SIG_ENTRY_x_xx(r, a, b) kWasmFunctionTypeForm, 2, a, b, 1, r | 601 #define SIG_ENTRY_x_xx(r, a, b) kWasmFunctionTypeForm, 2, a, b, 1, r |
595 #define SIG_ENTRY_x_xxx(r, a, b, c) kWasmFunctionTypeForm, 3, a, b, c, 1, r | 602 #define SIG_ENTRY_x_xxx(r, a, b, c) kWasmFunctionTypeForm, 3, a, b, c, 1, r |
596 #define SIZEOF_SIG_ENTRY_x 4 | 603 #define SIZEOF_SIG_ENTRY_x 4 |
597 #define SIZEOF_SIG_ENTRY_x_x 5 | 604 #define SIZEOF_SIG_ENTRY_x_x 5 |
598 #define SIZEOF_SIG_ENTRY_x_xx 6 | 605 #define SIZEOF_SIG_ENTRY_x_xx 6 |
599 #define SIZEOF_SIG_ENTRY_x_xxx 7 | 606 #define SIZEOF_SIG_ENTRY_x_xxx 7 |
600 | 607 |
601 #endif // V8_WASM_MACRO_GEN_H_ | 608 #endif // V8_WASM_MACRO_GEN_H_ |
OLD | NEW |