jumpIfKindOfConstant

fun jumpIfKindOfConstant(valueRead: L2ReadBoxedOperand, expectedType: A_Type, passedCheck: L2BasicBlock, failedCheck: L2BasicBlock)

Generate code to test the value in valueRead against the constant expectedType, jumping to passedCheck if it conforms, or failedCheck otherwise.

Parameters

valueRead

The L2ReadBoxedOperand that provides the value to check.

expectedType

The exact A_Type to check the value against.

passedCheck

Where to jump if the value's type is of the expected type.

failedCheck

Where to jump if the value's type is not of the expected type.