Rename continuation fields according the convention and count them in IR

This commit is contained in:
Iaroslav Postovalov
2020-12-10 02:27:31 +07:00
committed by Ilmir Usmanov
parent cd2b05eb00
commit 8a7bc2ef6f
10 changed files with 56 additions and 10 deletions
@@ -0,0 +1,9 @@
suspend fun blackhole(a: Any?) {}
suspend fun cleanUpExample(a: String, b: String) {
blackhole(a) // 1
blackhole(b) // 2
}
// 3 ACONST_NULL
// 2 PUTFIELD .*L\$0 : .*;
@@ -1,5 +1,5 @@
val f: suspend (Int) -> Unit = { unused ->
}
// 0 GETFIELD p\$0
// 0 PUTFIELD p\$0
// 0 GETFIELD .*I\$0
// 0 PUTFIELD .*I\$0