Returning multiple fields through a callee-sized frame #
Every return expression is evaluated in the original callee state before the saved caller locals are restored. The resulting words survive frame restoration in the return registers. Empty returns still restore the frame and jump to the saved return address, without evaluating or moving a dummy result.
The complete return executes the emitted prefix and its actual indirect jump; its transition count is the length of that instruction sequence.
State before the final indirect jump. The return fields contain their callee-local expression values; the caller's saved locals have been restored.
- preservedAbove : RegsPreservedAbove control localBound start finish
Instances For
Evaluate every return field before restoring the saved locals. User registers outside the callee's frame survive the entire return prefix.
The restored address controls the same indirect-jump instruction for any return arity, including an empty result list.
Execute the return prefix and its fetched indirect jump, charging exactly the actual emitted code length.