[JS IR] mark coroutine intrinsics as inline
They are de-facto inlined, but their bodies don't get loaded when using the "no bodies except for inline functions" deserializtion mode.
This commit is contained in:
committed by
TeamCityServer
parent
e972ad9855
commit
ee6d3ea281
@@ -28,11 +28,11 @@ internal fun <T> interceptContinuationIfNeeded(
|
|||||||
|
|
||||||
@SinceKotlin("1.2")
|
@SinceKotlin("1.2")
|
||||||
@PublishedApi
|
@PublishedApi
|
||||||
internal suspend fun getCoroutineContext(): CoroutineContext = getContinuation<Any?>().context
|
internal inline suspend fun getCoroutineContext(): CoroutineContext = getContinuation<Any?>().context
|
||||||
|
|
||||||
// TODO: remove `JS` suffix oncec `NameGenerator` is implemented
|
// TODO: remove `JS` suffix oncec `NameGenerator` is implemented
|
||||||
@PublishedApi
|
@PublishedApi
|
||||||
internal suspend fun <T> suspendCoroutineUninterceptedOrReturnJS(block: (Continuation<T>) -> Any?): T =
|
internal inline suspend fun <T> suspendCoroutineUninterceptedOrReturnJS(block: (Continuation<T>) -> Any?): T =
|
||||||
returnIfSuspended<T>(block(getContinuation<T>()))
|
returnIfSuspended<T>(block(getContinuation<T>()))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user