jump If Kind Of Constant
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
value Read
The L2ReadBoxedOperand that provides the value to check.
expected Type
The exact A_Type to check the value against.
passed Check
Where to jump if the value's type is of the expected type.
failed Check
Where to jump if the value's type is not of the expected type.