Stream: git-wasmtime

Topic: wasmtime / PR #2194 wasm: Remove duplicated parameters wh...


view this post on Zulip Wasmtime GitHub notifications bot (Sep 11 2020 at 11:17):

bnjbvr opened PR #2194 from wasm-multivalue-truncate-after-if to main:

Parameters are duplicated when pushing an If block, so they're available
to the Else block without an extra heap allocation. However, when
truncating the stack after popping the If control frame, the stack size
at entry doesn't account for the duplicated parameters. That is
intentional: the Else block uses this value to know what's the stack
size when it is entered, so there's nothing to change there.

This patch makes the wasm translation truncates the value stack to the
right size after an If block, by taking those duplicated parameters into
account.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 11 2020 at 11:17):

bnjbvr requested fitzgen and cfallin for a review on PR #2194.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 11 2020 at 11:17):

bnjbvr requested fitzgen and cfallin for a review on PR #2194.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 11 2020 at 15:34):

fitzgen submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 11 2020 at 15:34):

fitzgen merged PR #2194.


Last updated: Nov 22 2024 at 16:03 UTC