extractFunctionOuter

open fun extractFunctionOuter(    instruction: L2Instruction,     functionRegister: L2ReadBoxedOperand,     outerIndex: Int,     outerType: A_Type,     generator: L2Generator): L2ReadBoxedOperand

Emit code to extract the specified outer value from the function produced by this instruction. The new code is appended to the provided list of instructions, which may be at a code generation position unrelated to the receiver. The extracted outer variable will be written to the provided target register.

Return

The L2ReadBoxedOperand holding the outer value.

Parameters

instruction

The instruction that produced the function. Its operation is the receiver.

functionRegister

The register holding the function at the code generation point.

outerIndex

The one-based outer index to extract from the function.

outerType

The type of value that must be in that outer.

generator

The L2Generator into which to write the new code.