JVM_IR: remove two outdated comments

This commit is contained in:
pyos
2020-10-07 09:28:34 +02:00
committed by Alexander Udalov
parent f7441813a9
commit 8ef0fdf021
2 changed files with 0 additions and 3 deletions
@@ -51,8 +51,6 @@ internal val addContinuationPhase = makeIrFilePhase(
private class AddContinuationLowering(context: JvmBackendContext) : SuspendLoweringUtils(context), FileLoweringPass {
override fun lower(irFile: IrFile) {
// This should be done after converting lambdas into classes to avoid breaking the invariant that
// each lambda is referenced at most once while creating `$$forInline` methods.
addContinuationObjectAndContinuationParameterToSuspendFunctions(irFile)
addContinuationParameterToSuspendCalls(irFile)
}
@@ -283,7 +283,6 @@ private class SuspendLambdaLowering(context: JvmBackendContext) : SuspendLowerin
private fun IrBlockBodyBuilder.callInvokeSuspend(invokeSuspend: IrSimpleFunction, lambda: IrExpression): IrExpression =
irCallOp(invokeSuspend.symbol, invokeSuspend.returnType, lambda, irUnit())
// Primary constructor accepts parameters equal to function reference arguments + continuation and sets the fields.
private fun IrClass.addPrimaryConstructorForLambda(superClass: IrClass, arity: Int): IrConstructor =
addConstructor {
origin = JvmLoweredDeclarationOrigin.SUSPEND_LAMBDA