Revert "rra/zhelenskiy/flattening_impl"

This reverts commit b7f5c039a6.
This commit is contained in:
Evgeniy.Zhelenskiy
2022-10-07 12:40:25 +02:00
committed by teamcity
parent dff949344d
commit d4969e9b97
64 changed files with 332 additions and 15451 deletions
@@ -301,16 +301,14 @@ private fun MethodInsnNode.isInlineClassBoxingMethodDescriptor(state: Generation
if (name != KotlinTypeMapper.BOX_JVM_METHOD_NAME) return false
val ownerType = Type.getObjectType(owner)
val unboxedType = unboxedTypeOfInlineClass(ownerType, state) ?: return false
return desc == Type.getMethodDescriptor(ownerType, unboxedType)
return desc == Type.getMethodDescriptor(ownerType, unboxedTypeOfInlineClass(ownerType, state))
}
private fun MethodInsnNode.isInlineClassUnboxingMethodDescriptor(state: GenerationState): Boolean {
if (name != KotlinTypeMapper.UNBOX_JVM_METHOD_NAME) return false
val ownerType = Type.getObjectType(owner)
val unboxedType = unboxedTypeOfInlineClass(ownerType, state) ?: return false
return desc == Type.getMethodDescriptor(unboxedType)
return desc == Type.getMethodDescriptor(unboxedTypeOfInlineClass(ownerType, state))
}
fun AbstractInsnNode.isNextMethodCallOfProgressionIterator(values: List<BasicValue>) =