JVM_IR KT-50585 array constructor loop should end with IINC
This commit is contained in:
+4
-4
@@ -38,8 +38,8 @@ fun testObjectArray(n: Int) =
|
||||
// 8 IF_ICMPGE
|
||||
|
||||
// JVM_IR_TEMPLATES
|
||||
// 56 ILOAD
|
||||
// 24 ISTORE
|
||||
// 8 IADD
|
||||
// 48 ILOAD
|
||||
// 16 ISTORE
|
||||
// 0 IADD
|
||||
// 0 ISUB
|
||||
// 0 IINC
|
||||
// 8 IINC
|
||||
|
||||
+2
-2
@@ -11,5 +11,5 @@ fun test(): Int = "123".indexOfAny(CharArray(1000) { '1' })
|
||||
// JVM_IR_TEMPLATES:
|
||||
// 3 ALOAD
|
||||
// 3 ASTORE
|
||||
// 4 ILOAD
|
||||
// 3 ISTORE
|
||||
// 3 ILOAD
|
||||
// 2 ISTORE
|
||||
|
||||
Reference in New Issue
Block a user