Split AsmUtils to descriptors dependent and independent parts

This commit is contained in:
Dmitriy Novozhilov
2020-09-22 17:35:59 +03:00
parent 54a5a066e8
commit 7380abac13
51 changed files with 625 additions and 556 deletions
@@ -159,7 +159,7 @@ class SerializableCodegenImpl(
exprCodegen.gen(expr, propAsmType)
val rhs = StackValue.onStack(propAsmType)
// INVOKESTATIC kotlin/jvm/internal/Intrinsics.areEqual (Ljava/lang/Object;Ljava/lang/Object;)Z
AsmUtil.genEqualsForExpressionsOnStack(KtTokens.EXCLEQ, lhs, rhs).put(Type.BOOLEAN_TYPE, null, this)
DescriptorAsmUtil.genEqualsForExpressionsOnStack(KtTokens.EXCLEQ, lhs, rhs).put(Type.BOOLEAN_TYPE, null, this)
ifne(writeLabel)
// output.shouldEncodeElementDefault(descriptor, i)
@@ -291,4 +291,4 @@ class SerializableCodegenImpl(
this.gen(param.defaultValue, mapType)
this.v.putfield(thisAsmType.internalName, prop.name.asString(), mapType.descriptor)
}
}
}