aboutsummaryrefslogtreecommitdiff
path: root/src/stage1/codegen.cpp
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-10-12 21:18:56 +0200
committerLuuk de Gram <luuk@degram.dev>2022-10-16 15:54:16 +0200
commitb17c8c542420e14e24ec397b248dfc101a08421e (patch)
tree3821eba40a5555939f2c1131a7f888bb634c1a13 /src/stage1/codegen.cpp
parentb9b20b14ea5886aa862927daa7164073aab56132 (diff)
downloadzig-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/stage1/codegen.cpp')
0 files changed, 0 insertions, 0 deletions