reportUnassignedVariableRead

fun reportUnassignedVariableRead(    pc: Int,     stackp: Int,     vararg slots: A_BasicObject): StackReifier

Handle having attempted to read from a variable that does not currently have a value. This shrinks the control flow graph in L2, which is not just a time saving during creation and memory saving ongoing, but may also increase HotSpot's effectiveness.

This Interpreter's function is expected to contain the current function.

Note that if the handler (HookType.READ_UNASSIGNED_VARIABLE) asks to reify, this method will construct a continuation representing the current function. The continuation frame can't be resumed, so it will use the unoptimizedChunk's ChunkEntryPoint.UNREACHABLE.

Return

Either null or a StackReifier that the calling code should simply return. This method creates a stack frame on behalf of the current executing function if needed.

Parameters

pc

The level one A_Continuation.pc to use in a new continuation, if reification happens inside the error handler.

stackp

The level one parameter stack pointer to use in a new continuation, if reification happens inside the error handler.

slots

Values that will populate a continuation's frame slots if reification happens inside the error handler.