JVM_IR: Minor. Unmute tests

Rename FAKE_CONTINUATION -> fakeContinuation
This commit is contained in:
Ilmir Usmanov
2019-09-19 19:26:52 +03:00
parent 06d0e8a521
commit f1d31c8221
7 changed files with 3 additions and 7 deletions
@@ -86,7 +86,7 @@ class JvmBackendContext(
val suspendLambdaToOriginalFunctionMap = mutableMapOf<IrClass, IrFunction>() val suspendLambdaToOriginalFunctionMap = mutableMapOf<IrClass, IrFunction>()
val continuationClassBuilders = mutableMapOf<IrClass, ClassBuilder>() val continuationClassBuilders = mutableMapOf<IrClass, ClassBuilder>()
val suspendFunctionViews = mutableMapOf<IrFunction, IrFunction>() val suspendFunctionViews = mutableMapOf<IrFunction, IrFunction>()
val FAKE_CONTINUATION: IrExpression = createFakeContinuation(this) val fakeContinuation: IrExpression = createFakeContinuation(this)
val staticDefaultStubs = mutableMapOf<IrFunctionSymbol, IrFunction>() val staticDefaultStubs = mutableMapOf<IrFunctionSymbol, IrFunction>()
@@ -177,7 +177,7 @@ internal fun IrCall.createSuspendFunctionCallViewIfNeeded(
when { when {
caller.isInvokeSuspendOfLambda(context) || caller.isInvokeSuspendOfContinuation(context) -> caller.isInvokeSuspendOfLambda(context) || caller.isInvokeSuspendOfContinuation(context) ->
IrGetValueImpl(UNDEFINED_OFFSET, UNDEFINED_OFFSET, caller.dispatchReceiverParameter!!.symbol) IrGetValueImpl(UNDEFINED_OFFSET, UNDEFINED_OFFSET, caller.dispatchReceiverParameter!!.symbol)
callerIsInlineLambda -> context.FAKE_CONTINUATION callerIsInlineLambda -> context.fakeContinuation
else -> IrGetValueImpl(UNDEFINED_OFFSET, UNDEFINED_OFFSET, caller.valueParameters.last().symbol) else -> IrGetValueImpl(UNDEFINED_OFFSET, UNDEFINED_OFFSET, caller.valueParameters.last().symbol)
} }
it.putValueArgument(valueArgumentsCount, continuationParameter) it.putValueArgument(valueArgumentsCount, continuationParameter)
@@ -158,7 +158,7 @@ class ExpressionCodegen(
// TODO remove // TODO remove
fun gen(expression: IrExpression, type: Type, irType: IrType, data: BlockInfo): StackValue { fun gen(expression: IrExpression, type: Type, irType: IrType, data: BlockInfo): StackValue {
if (expression === context.FAKE_CONTINUATION) { if (expression === context.fakeContinuation) {
addFakeContinuationMarker(mv) addFakeContinuationMarker(mv)
} else { } else {
expression.accept(this, data).coerce(type, irType).materialize() expression.accept(this, data).coerce(type, irType).materialize()
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME // WITH_RUNTIME
class A class A
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME // WITH_RUNTIME
class A class A
@@ -1,5 +1,4 @@
// KJS_WITH_FULL_RUNTIME // KJS_WITH_FULL_RUNTIME
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME // WITH_RUNTIME
// WITH_COROUTINES // WITH_COROUTINES
// COMMON_COROUTINES_TEST // COMMON_COROUTINES_TEST
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME // WITH_RUNTIME
// WITH_COROUTINES // WITH_COROUTINES
// COMMON_COROUTINES_TEST // COMMON_COROUTINES_TEST