Skip to content

Commit b42ba7c

Browse files
committed
wasm: free unused locals
When a local is no longer referenced or used, free it so the local can be re-used by another instruction. This means we generate less locals. Freeing this local is a manual action and must only be used on temporaries or where we are sure the local is not referenced by a different AIR instruction, as that creates UB. We now also no longer store a `WValue` when its tag is set to `none` as those may never be referenced by any AIR instruction. An assertion is done to make sure we never store a reference to a `stack` value in our resolved instructions.
1 parent a5e4fd7 commit b42ba7c

File tree

1 file changed

+151
-86
lines changed

1 file changed

+151
-86
lines changed

0 commit comments

Comments
 (0)