diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-12-20 19:18:09 +0100 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-12-21 17:02:53 +0100 |
| commit | 0d66112643286a754101eb71382f860ae1874012 (patch) | |
| tree | 80fd56e6adff4e99cbc3638fc8f03a967b0be61e /test/behavior/array.zig | |
| parent | a52dcdd3c5ebd3a1d5a0189ded830dadd253193c (diff) | |
| download | zig-0d66112643286a754101eb71382f860ae1874012.tar.gz zig-0d66112643286a754101eb71382f860ae1874012.zip | |
wasm: refactor extended instructions
The extended instructions starting with opcode `0xFC` are refactored
to make the work the same as the SIMD instructions. This means a
`Mir` instruction no longer contains a field 'secondary'. Instead,
we use the `payload` field to store the index into the extra list
which contains the extended opcode value. In case of instructions
such as 'memory.fill' which also have an immediate value, such
values will also be stored in the extra list right after the
instruction itself. This makes each `Mir` instruction smaller.
Diffstat (limited to 'test/behavior/array.zig')
0 files changed, 0 insertions, 0 deletions
