# wasm: de \-and increment reference count locals · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/576bb3f0a965cd7ff3dad6076567657f18d6675e)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 576bb3f0a965cd7ff3dad6076567657f18d6675e

Requested commit: 576bb3f0a965cd7ff3dad6076567657f18d6675e

Commit: 576bb3f0a965cd7ff3dad6076567657f18d6675e

Tree: e6db50bc8e680c73935f3f392b754ed4c8a4e164

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: de -and increment reference count locals

When reusing an operand it increases the reference count, then when
an operand dies it will only decrease the reference count. When
this reaches 0, the local will be virtually freed, meaning it can be
re-used for a new local.

```

## Parents

- [b17c8c542420e14e24ec397b248dfc101a08421e](https://git.cafe/gitcafe/zig/commit/b17c8c542420e14e24ec397b248dfc101a08421e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/576bb3f0a965cd7ff3dad6076567657f18d6675e?format=markdown)
