[K/N] Use suspend function desugaring lowerings.

This commit is contained in:
Pavel Kunyavskiy
2022-09-05 16:14:29 +02:00
committed by Space Team
parent 8886e1b8b4
commit 817dba8564
19 changed files with 227 additions and 169 deletions
@@ -25,6 +25,3 @@ internal inline suspend fun getCoroutineContext(): CoroutineContext =
@TypedIntrinsic(IntrinsicType.RETURN_IF_SUSPENDED)
@PublishedApi
internal external suspend fun <T> returnIfSuspended(@Suppress("UNUSED_PARAMETER") argument: Any?): T
@TypedIntrinsic(IntrinsicType.COROUTINE_LAUNCHPAD)
internal external fun coroutineLaunchpad(suspendFunctionCall: Any?, continuation: Continuation<*>): Any?
@@ -61,7 +61,6 @@ class IntrinsicType {
// Coroutines
const val GET_CONTINUATION = "GET_CONTINUATION"
const val RETURN_IF_SUSPENDED = "RETURN_IF_SUSPENDED"
const val COROUTINE_LAUNCHPAD = "COROUTINE_LAUNCHPAD"
// Interop
const val INTEROP_READ_PRIMITIVE = "INTEROP_READ_PRIMITIVE"