Fixed a typo

This commit is contained in:
Igor Chevdar
2019-08-23 18:57:52 +03:00
parent 82e0e318c0
commit 04f3aae72b
3 changed files with 5 additions and 4 deletions
@@ -65,7 +65,7 @@ internal enum class IntrinsicType {
INIT_INSTANCE,
// Coroutines
GET_CONTINUATION,
RETURN_IF_SUSPEND,
RETURN_IF_SUSPENDED,
COROUTINE_LAUNCHPAD,
// Interop
INTEROP_READ_BITS,
@@ -238,7 +238,7 @@ internal class IntrinsicGenerator(private val environment: IntrinsicGeneratorEnv
IntrinsicType.IDENTITY -> emitIdentity(args)
IntrinsicType.GET_CONTINUATION -> emitGetContinuation()
IntrinsicType.INTEROP_MEMORY_COPY -> emitMemoryCopy(callSite, args)
IntrinsicType.RETURN_IF_SUSPEND,
IntrinsicType.RETURN_IF_SUSPENDED,
IntrinsicType.INTEROP_BITS_TO_FLOAT,
IntrinsicType.INTEROP_BITS_TO_DOUBLE,
IntrinsicType.INTEROP_SIGN_EXTEND,
@@ -22,7 +22,7 @@ internal external fun <T> getContinuation(): Continuation<T>
internal inline suspend fun getCoroutineContext(): CoroutineContext =
getContinuation<Any?>().context
@TypedIntrinsic(IntrinsicType.RETURN_IF_SUSPEND)
@TypedIntrinsic(IntrinsicType.RETURN_IF_SUSPENDED)
@PublishedApi
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 INIT_INSTANCE = "INIT_INSTANCE"
// Coroutines
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"
// Interop