diff options
| author | Luuk de Gram <luuk@degram.dev> | 2024-01-29 06:52:50 +0100 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2024-02-29 15:23:04 +0100 |
| commit | c153f94c892fc3b718d29ba4ae3234e99d4baba4 (patch) | |
| tree | 436ba6d7aaa2daa8860dc9b4096b23f336d46f3c /src/codegen | |
| parent | fde8c2f41a76f6bc56d733a8cb6aae90f8e3f41b (diff) | |
| download | zig-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')
0 files changed, 0 insertions, 0 deletions
