diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-10-30 13:08:02 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-10-30 19:34:58 -0700 |
| commit | ba2d006634925850fab9d0a0e01d87bdaa368108 (patch) | |
| tree | a0bba99d508fe111cf967cbe5d27b55cf30cc972 /src/InternPool.zig | |
| parent | 17a87d734167b500761ef0d61493342dea0ae01d (diff) | |
| download | zig-ba2d006634925850fab9d0a0e01d87bdaa368108.tar.gz zig-ba2d006634925850fab9d0a0e01d87bdaa368108.zip | |
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.
Diffstat (limited to 'src/InternPool.zig')
0 files changed, 0 insertions, 0 deletions
