View Source Orb.Stack (Orb v0.1.1)
Functions for working with the WebAssembly function stack.
Particularly useful for inlined algorithms which can push a value to the stack and later pop it, avoiding the need to declare another local.
Summary
Functions
Executes the passed instruction and immediately drops its result(s) from the stack, effectively ignoring the resulting value.
Pops the last value from the stack, useful for assigning it to a local.
Pushes a value onto the current stack.
Push value then run the block. Useful for when you mutate a variable but want its previous value.
Functions
Executes the passed instruction and immediately drops its result(s) from the stack, effectively ignoring the resulting value.
Pops the last value from the stack, useful for assigning it to a local.
Pushes a value onto the current stack.
Push value then run the block. Useful for when you mutate a variable but want its previous value.