Fixed a typo
This commit is contained in:
+2
-2
@@ -65,7 +65,7 @@ internal enum class IntrinsicType {
|
|||||||
INIT_INSTANCE,
|
INIT_INSTANCE,
|
||||||
// Coroutines
|
// Coroutines
|
||||||
GET_CONTINUATION,
|
GET_CONTINUATION,
|
||||||
RETURN_IF_SUSPEND,
|
RETURN_IF_SUSPENDED,
|
||||||
COROUTINE_LAUNCHPAD,
|
COROUTINE_LAUNCHPAD,
|
||||||
// Interop
|
// Interop
|
||||||
INTEROP_READ_BITS,
|
INTEROP_READ_BITS,
|
||||||
@@ -238,7 +238,7 @@ internal class IntrinsicGenerator(private val environment: IntrinsicGeneratorEnv
|
|||||||
IntrinsicType.IDENTITY -> emitIdentity(args)
|
IntrinsicType.IDENTITY -> emitIdentity(args)
|
||||||
IntrinsicType.GET_CONTINUATION -> emitGetContinuation()
|
IntrinsicType.GET_CONTINUATION -> emitGetContinuation()
|
||||||
IntrinsicType.INTEROP_MEMORY_COPY -> emitMemoryCopy(callSite, args)
|
IntrinsicType.INTEROP_MEMORY_COPY -> emitMemoryCopy(callSite, args)
|
||||||
IntrinsicType.RETURN_IF_SUSPEND,
|
IntrinsicType.RETURN_IF_SUSPENDED,
|
||||||
IntrinsicType.INTEROP_BITS_TO_FLOAT,
|
IntrinsicType.INTEROP_BITS_TO_FLOAT,
|
||||||
IntrinsicType.INTEROP_BITS_TO_DOUBLE,
|
IntrinsicType.INTEROP_BITS_TO_DOUBLE,
|
||||||
IntrinsicType.INTEROP_SIGN_EXTEND,
|
IntrinsicType.INTEROP_SIGN_EXTEND,
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ internal external fun <T> getContinuation(): Continuation<T>
|
|||||||
internal inline suspend fun getCoroutineContext(): CoroutineContext =
|
internal inline suspend fun getCoroutineContext(): CoroutineContext =
|
||||||
getContinuation<Any?>().context
|
getContinuation<Any?>().context
|
||||||
|
|
||||||
@TypedIntrinsic(IntrinsicType.RETURN_IF_SUSPEND)
|
@TypedIntrinsic(IntrinsicType.RETURN_IF_SUSPENDED)
|
||||||
@PublishedApi
|
@PublishedApi
|
||||||
internal external suspend fun <T> returnIfSuspended(@Suppress("UNUSED_PARAMETER") argument: Any?): T
|
internal external suspend fun <T> returnIfSuspended(@Suppress("UNUSED_PARAMETER") argument: Any?): T
|
||||||
|
|
||||||
|
|||||||
@@ -54,8 +54,9 @@ class IntrinsicType {
|
|||||||
const val IMMUTABLE_BLOB = "IMMUTABLE_BLOB"
|
const val IMMUTABLE_BLOB = "IMMUTABLE_BLOB"
|
||||||
const val INIT_INSTANCE = "INIT_INSTANCE"
|
const val INIT_INSTANCE = "INIT_INSTANCE"
|
||||||
|
|
||||||
|
// Coroutines
|
||||||
const val GET_CONTINUATION = "GET_CONTINUATION"
|
const val GET_CONTINUATION = "GET_CONTINUATION"
|
||||||
const val RETURN_IF_SUSPEND = "RETURN_IF_SUSPEND"
|
const val RETURN_IF_SUSPENDED = "RETURN_IF_SUSPENDED"
|
||||||
const val COROUTINE_LAUNCHPAD = "COROUTINE_LAUNCHPAD"
|
const val COROUTINE_LAUNCHPAD = "COROUTINE_LAUNCHPAD"
|
||||||
|
|
||||||
// Interop
|
// Interop
|
||||||
|
|||||||
Reference in New Issue
Block a user