createContinuationExceptFrame

fun createContinuationExceptFrame(function: A_Function, caller: A_Continuation, registerDump: AvailObject, pc: Int, stackp: Int, levelTwoChunk: L2Chunk, levelTwoOffset: Int): AvailObject

Create a mutable continuation with the specified fields. Fill the stack frame slots with nil.

Return

A new mutable continuation.

Parameters

function

The function being invoked/resumed.

caller

The calling continuation of this continuation.

registerDump

Either nil or a ContinuationRegisterDumpDescriptor instance that an L2Chunk will use upon resumption.

pc

The level one program counter.

stackp

The level one operand stack depth.

levelTwoChunk

The level two chunk to execute.

levelTwoOffset

The level two chunk offset at which to resume.