JVM_IR: Minor. Unmute tests
Rename FAKE_CONTINUATION -> fakeContinuation
This commit is contained in:
@@ -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>()
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -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)
|
||||||
|
|||||||
+1
-1
@@ -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()
|
||||||
|
|||||||
Vendored
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|
||||||
class A
|
class A
|
||||||
|
|||||||
compiler/testData/checkLocalVariablesTable/completionInSuspendFunction/staticStateMachineReceiver.kt
Vendored
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|
||||||
class A
|
class A
|
||||||
|
|||||||
-1
@@ -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
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
// WITH_COROUTINES
|
// WITH_COROUTINES
|
||||||
// COMMON_COROUTINES_TEST
|
// COMMON_COROUTINES_TEST
|
||||||
|
|||||||
Reference in New Issue
Block a user