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.