JVM_IR Spill stack on array constructor call

KT-42932
This commit is contained in:
Dmitry Petrov
2021-03-11 18:03:37 +03:00
parent dbfe45993a
commit 44e6483090
19 changed files with 326 additions and 10 deletions
@@ -0,0 +1,15 @@
// WITH_RUNTIME
fun test(): Int = "123".indexOfAny(CharArray(1000) { '1' })
// JVM_TEMPLATES:
// 5 ALOAD
// 5 ASTORE
// 7 ILOAD
// 6 ISTORE
// JVM_IR_TEMPLATES:
// 3 ALOAD
// 3 ASTORE
// 4 ILOAD
// 3 ISTORE