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.
b17c8c5424Luuk de Gram committed on 10/16/2022, 1:54:16 PMparentb9b20b1
1 file changedLine totals unavailable