Add $completion entry to suspend functions' LVT

#KT-28810 Fixed
This commit is contained in:
Ilmir Usmanov
2019-02-20 17:55:11 +03:00
parent 677987c85f
commit ec7315e6da
11 changed files with 200 additions and 9 deletions
@@ -0,0 +1,13 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
suspend fun foo() {}
suspend fun foo1(l: Long) {
foo()
foo()
}
// METHOD : StaticStateMachineKt.foo1(JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
// VARIABLE : NAME=l TYPE=J INDEX=0
// VARIABLE : NAME=$completion TYPE=Lkotlin/coroutines/Continuation; INDEX=2
// VARIABLE : NAME=$continuation TYPE=Lkotlin/coroutines/Continuation; INDEX=4