Skip to main content

Module expr

Module expr 

Source
Expand description

Expression code generation.

Every expression evaluates to an i32 value pointer left on the WASM operand stack. The caller can then store it, pass it to another function, or ignore it.

Functions§

emit_block_as_expr
Emit a block’s statements and leave the last expression’s value on the stack. If the block has no statements, pushes nil.
emit_expr
Emit instructions for an expression. Leaves one i32 (value ptr) on stack.