QuickBEAM.VM.Compiler.Lowering.Captures (QuickBEAM v0.10.9)

Copy Markdown View Source

Capture-cell management during lowering: ensures and closes shared cells for captured local variables.

Summary

Functions

Closes a capture cell over the current slot value.

Ensures a capture cell exists for a local slot.

Returns whether a local slot is captured by a closure.

Synchronizes a capture cell with the current slot value.

Functions

close_capture_cell(state, idx)

Closes a capture cell over the current slot value.

ensure_capture_cell(state, idx)

Ensures a capture cell exists for a local slot.

slot_captured?(arg1, idx)

Returns whether a local slot is captured by a closure.

sync_capture_cell(state, idx, expr)

Synchronizes a capture cell with the current slot value.