aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-12-20 19:18:09 +0100
committerLuuk de Gram <luuk@degram.dev>2022-12-21 17:02:53 +0100
commit0d66112643286a754101eb71382f860ae1874012 (patch)
tree80fd56e6adff4e99cbc3638fc8f03a967b0be61e /src/Compilation.zig
parenta52dcdd3c5ebd3a1d5a0189ded830dadd253193c (diff)
downloadzig-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 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions