JVM_IR add bytecode shape check to all relevant for-loop tests
This commit is contained in:
committed by
TeamCityServer
parent
d9e4dec810
commit
860c80d210
+7
@@ -19,3 +19,10 @@ fun box(): String {
|
||||
}
|
||||
|
||||
// 0 iterator
|
||||
|
||||
// JVM_IR_TEMPLATES
|
||||
// 3 ILOAD
|
||||
// 2 ISTORE
|
||||
// 0 IADD
|
||||
// 0 ISUB
|
||||
// 0 IINC
|
||||
|
||||
+6
@@ -27,3 +27,9 @@ fun test(s: CharSequence): Int {
|
||||
// 1 IF_ICMPGE
|
||||
// 1 IF
|
||||
|
||||
// JVM_IR_TEMPLATES
|
||||
// 5 ILOAD
|
||||
// 4 ISTORE
|
||||
// 2 IADD
|
||||
// 0 ISUB
|
||||
// 1 IINC
|
||||
compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInCharSequenceTypeParameterIndices.kt
Vendored
+7
@@ -27,3 +27,10 @@ fun <T : CharSequence> test(s: T): Int {
|
||||
// 0 IF_ICMPLE
|
||||
// 1 IF_ICMPGE
|
||||
// 1 IF
|
||||
|
||||
// JVM_IR_TEMPLATES
|
||||
// 5 ILOAD
|
||||
// 4 ISTORE
|
||||
// 2 IADD
|
||||
// 0 ISUB
|
||||
// 1 IINC
|
||||
+7
@@ -25,3 +25,10 @@ fun Collection<Int>.sumIndices(): Int {
|
||||
// 0 IF_ICMPGT
|
||||
// 0 IF_ICMPLE
|
||||
// 1 IF
|
||||
|
||||
// JVM_IR_TEMPLATES
|
||||
// 5 ILOAD
|
||||
// 4 ISTORE
|
||||
// 1 IADD
|
||||
// 0 ISUB
|
||||
// 1 IINC
|
||||
+7
@@ -24,3 +24,10 @@ fun test() {
|
||||
// 0 IF_ICMPGT
|
||||
// 0 IF_ICMPLE
|
||||
// 1 IF
|
||||
|
||||
// JVM_IR_TEMPLATES
|
||||
// 4 ILOAD
|
||||
// 4 ISTORE
|
||||
// 1 IADD
|
||||
// 0 ISUB
|
||||
// 1 IINC
|
||||
Vendored
+7
@@ -25,3 +25,10 @@ fun <T : Collection<*>> test(c: T) {
|
||||
// 0 IF_ICMPGT
|
||||
// 0 IF_ICMPLE
|
||||
// 1 IF
|
||||
|
||||
// JVM_IR_TEMPLATES
|
||||
// 4 ILOAD
|
||||
// 4 ISTORE
|
||||
// 1 IADD
|
||||
// 0 ISUB
|
||||
// 1 IINC
|
||||
|
||||
+7
@@ -23,3 +23,10 @@ fun test(coll: Collection<*>?): Int {
|
||||
// 1 getIndices
|
||||
// 1 getFirst
|
||||
// 1 getLast
|
||||
|
||||
// JVM_IR_TEMPLATES
|
||||
// 7 ILOAD
|
||||
// 4 ISTORE
|
||||
// 1 IADD
|
||||
// 0 ISUB
|
||||
// 1 IINC
|
||||
+7
@@ -24,3 +24,10 @@ fun test() {
|
||||
// 0 IF_ICMPGT
|
||||
// 0 IF_ICMPLE
|
||||
// 1 IF
|
||||
|
||||
// JVM_IR_TEMPLATES
|
||||
// 4 ILOAD
|
||||
// 4 ISTORE
|
||||
// 1 IADD
|
||||
// 0 ISUB
|
||||
// 1 IINC
|
||||
|
||||
+7
@@ -24,3 +24,10 @@ fun test() {
|
||||
// 0 IF_ICMPGT
|
||||
// 0 IF_ICMPLE
|
||||
// 1 IF
|
||||
|
||||
// JVM_IR_TEMPLATES
|
||||
// 4 ILOAD
|
||||
// 4 ISTORE
|
||||
// 1 IADD
|
||||
// 0 ISUB
|
||||
// 1 IINC
|
||||
Reference in New Issue
Block a user