mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
link.File.Wasm: remove the "files" abstraction
Removes the `files` field from the Wasm linker, storing the ZigObject as its own field instead using a tagged union. This removes a layer of indirection when accessing the ZigObject, and untangles logic so that we can introduce a "pre-link" phase that prepares the linker state to handle only incremental updates to the ZigObject and then minimize logic inside flush(). Furthermore, don't make array elements store their own indexes, that's always a waste. Flattens some of the file system hierarchy and unifies variable names for easier refactoring. Introduces type safety for optional object indexes.
This commit is contained in:
parent
17a87d7341
commit
ba2d006634
10 changed files with 1146 additions and 1160 deletions
Loading…
Add table
Add a link
Reference in a new issue