extractParameterTypeFromFunction

fun extractParameterTypeFromFunction(functionRead: L2ReadBoxedOperand, parameterIndex: Int): L2ReadBoxedOperand

Given a register containing a function and a parameter index, emit code to extract the parameter type at runtime from the actual function.

Return

The register containing the parameter type.

Parameters

functionRead

The register that will hold the function at runtime.

parameterIndex

Which function parameter should have its type extracted.