diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-10-12 21:18:56 +0200 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-10-16 15:54:16 +0200 |
| commit | b17c8c542420e14e24ec397b248dfc101a08421e (patch) | |
| tree | 3821eba40a5555939f2c1131a7f888bb634c1a13 /src/codegen | |
| parent | b9b20b14ea5886aa862927daa7164073aab56132 (diff) | |
| download | zig-b17c8c542420e14e24ec397b248dfc101a08421e.tar.gz zig-b17c8c542420e14e24ec397b248dfc101a08421e.zip | |
wasm: reference count locals
By reference counting the locals, we can ensure that when we free
a local, no local will be reused while it still has references pointing
to it. This prevents misscompilations. The compiler will also panic if
we free a local more than we reference it, introducing extra safety to
ensure they match up.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions
