!is support
This commit is contained in:
committed by
Dmitry Petrov
parent
12235faa39
commit
59fc5befad
+4
-1
@@ -528,10 +528,13 @@ class ExpressionCodegen(
|
|||||||
return onStack(boxedType)
|
return onStack(boxedType)
|
||||||
}
|
}
|
||||||
|
|
||||||
IrTypeOperator.INSTANCEOF -> {
|
IrTypeOperator.INSTANCEOF, IrTypeOperator.NOT_INSTANCEOF -> {
|
||||||
gen(expression.argument, OBJECT_TYPE, data)
|
gen(expression.argument, OBJECT_TYPE, data)
|
||||||
val type = boxType(asmType)
|
val type = boxType(asmType)
|
||||||
generateIsCheck(mv, expression.typeOperand, type)
|
generateIsCheck(mv, expression.typeOperand, type)
|
||||||
|
if (IrTypeOperator.NOT_INSTANCEOF == expression.operator) {
|
||||||
|
StackValue.not(StackValue.onStack(Type.BOOLEAN_TYPE)).put(Type.BOOLEAN_TYPE, mv)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
IrTypeOperator.IMPLICIT_NOTNULL -> {
|
IrTypeOperator.IMPLICIT_NOTNULL -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user