sunfishcode closed issue #2712:
In WebAssembly, a
br
instruction with a depth equal the the current control-flow stack depth is equivalent to areturn
. However, in the current fuel implementation, these are handled differently:
return
consumes 0 fuel, while abr
to the control-flow stack depth consumes 1.return
updates the fuel usage field inVMInterrupts
, while abr
,br_if
, orbr_table
to the control-flow stack depth does not, even though they also exit the function
sunfishcode commented on issue #2712:
Closing, as I don't think there's anything that needs doing here.
Last updated: Dec 23 2024 at 12:05 UTC