| 122 | 122 | **Unboxed-int workers** (ADR 0045, Revision 2). The same for known `Int`: a worker `f$ui` on raw `int64_t`s. Because a raw result can leave the 63-bit small range (where Louise promotes to a big integer), the worker checks each add/subtract/multiply and returns `TL_INT_BAIL` on overflow — division and remainder also bail where the boxed path would panic or promote — and the direct caller recomputes the whole call with the boxed wrapper. Only functions safe to re-run (fusion's purity gate) get one, and the boundary calls the worker only for immediate or range-proven-small arguments (a boxed `Int` may be a big integer). `LOUISE_NO_UNBOX_INTS` turns them off. |
| 124 | +**Record workers** (ADR 0069, issue #337). The same split for a monomorphic function whose parameters or result have a single known constructor (a record, a one-constructor type, a tuple): the worker `f$ur` takes the marked constructors' *fields* as one C parameter each (bounded by the 6 registers + 26 xargs slots; wider stays boxed) and returns a small result's fields as a bare `tl_value` (one) or a `tl_pair{n}` struct (two to four). Every field of a user constructor is a `tl_value`, so this is placement, not representation: the runtime's value encoding and the ABI version are unchanged. A construction that never escapes is never allocated (its fields are locals); an escape rebuilds the box (`tl_alloc`); a consumed box's fields are moved out with `tl_unbox_fields` (prelude). A flat value's `release` moves the bound fields and makes a unit token, so the FBIP release/rebuild loop flattens to field moves. `LOUISE_NO_UNBOX_RECORDS` turns them off. |
| 124 | 126 | **`xargs` belongs to the thread** (ABI 3, ADR 0028). The scheduler points `ctx->xargs` at the running thread's 26 slots each time an actor resumes. This is safe because nothing suspends, and no generated code runs, between a caller's stores and the callee's copy: generated functions copy before their preemption check, and the runtime's callers (`call_closure`, effect clauses, callbacks) call straight into generated code. The one exception, a `ctl` clause's call (`handlers.rs`), drops the operation's payload in between: freeing runs no Louise code (a suspended handler fiber is leaked, not resumed, and a resource's finalizer is C that must not touch Louise values). Checked builds verify it: the runtime poisons the slots at each slice, and a callee that copies a poisoned slot aborts (`TL_XARG`, issue #217). Until ABI 2 the slots were part of the context: 208 of the 336 bytes of every actor. |