createDummyContinuation

fun createDummyContinuation(    function: A_Function,     boxedRegisters: Array<AvailObject>,     unboxedRegisters: LongArray,     levelTwoChunk: L2Chunk,     levelTwoOffset: Int): AvailObject

Create a private continuation with the specified fields. The continuation will never be visible to level one code, but is used to carry register state (and L2Chunk& offset) during stack unwinding for a reification. It will be executed (in the reverse of stack order) to run L2 code that reconstitutes a real continuation, which is pushed on the Interpreter.getReifiedContinuation stack.

Return

A new continuation, which can be resumed but is not reflectively meaningful.

Parameters

function

The A_Function that was running when this dummy continuation was made.

boxedRegisters

An AvailObject containing values to save in a register dump.

unboxedRegisters

A long[] containing values to save in a register dump.

levelTwoChunk

The level two chunk to execute.

levelTwoOffset

The level two chunk offset at which to resume.