# wasm: \`binOp\` leave value on stack · gitcafe/zig

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

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

Visibility: public

Requested revision: cc6f2b67c68ece7577e27e23846670d6566ad5f2

Requested commit: cc6f2b67c68ece7577e27e23846670d6566ad5f2

Commit: cc6f2b67c68ece7577e27e23846670d6566ad5f2

Tree: db8feb8b61013657965d2de7a5383947434425fc

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: `binOp` leave value on stack

Rather than always creating a new local and storing the result of
a binary operation into said local, we now leave it on top of the stack.
This allows for better codegen as we need less instructions, as well
as less total amount of locals.

```

## Parents

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

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