aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2024-01-29 06:52:50 +0100
committerLuuk de Gram <luuk@degram.dev>2024-02-29 15:23:04 +0100
commitc153f94c892fc3b718d29ba4ae3234e99d4baba4 (patch)
tree436ba6d7aaa2daa8860dc9b4096b23f336d46f3c /src/codegen/c.zig
parentfde8c2f41a76f6bc56d733a8cb6aae90f8e3f41b (diff)
downloadzig-c153f94c892fc3b718d29ba4ae3234e99d4baba4.tar.gz
zig-c153f94c892fc3b718d29ba4ae3234e99d4baba4.zip
wasm: ensure unique function indexes
We cannot keep function indexes as maxInt(u32) due to functions being dedupliated when they point to the same function. For this reason we now use a regular arraylist which will have new functions appended to, and when deleted, its index is appended to the free list, allowing us to re-use slots in the function list.
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions