aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2021-11-19 22:15:53 +0100
committerLuuk de Gram <luuk@degram.dev>2021-11-21 21:07:55 +0100
commitec5220405b0218f892f6a1636ddd04d791017309 (patch)
treed69aa5d8c4e876a61da6335d79149e8278194dde /src/Compilation.zig
parent460b3d39eae8d294efbe2e5762ea38c93c352d63 (diff)
downloadzig-ec5220405b0218f892f6a1636ddd04d791017309.tar.gz
zig-ec5220405b0218f892f6a1636ddd04d791017309.zip
wasm: Implement optionals and ensure correct alignment
Rather than writing the alignment in its natural form, wasm binaries encode the alignment of types as the exponent of a power of 2. So rather than performing this encoding during AIR->MIR, we do this while emitting MIR->binary encoding. This allows us to keep alignment logic to its natural form while doing calculations (Which is what we need during linking as well). We also implement optionals and pointers to an optional.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions