runChunk

fun runChunk(): StackReifier?

Run the current L2Chunk to completion. Note that a reification request may cut this short. Also note that this interpreter indicates the offset at which to start executing. For an initial invocation, the argsBuffer will have been set up for the call. For a return into this continuation, the offset will refer to code that will rebuild the register set from the top reified continuation, using the latestResult. For resuming the continuation, the offset will point to code that also rebuilds the register set from the top reified continuation, but it won't expect a return value. These re-entry points should perform validity checks on the chunk, allowing an orderly off-ramp into the unoptimizedChunk (which simply interprets the L1 nybblecodes).

Return

null if returning normally, otherwise a StackReifier to effect reification.