JVM_IR add bytecode shape check to all relevant for-loop tests

This commit is contained in:
Dmitry Petrov
2021-09-06 16:42:48 +03:00
committed by TeamCityServer
parent d9e4dec810
commit 860c80d210
105 changed files with 780 additions and 78 deletions
@@ -19,3 +19,10 @@ fun box(): String {
}
// 0 iterator
// JVM_IR_TEMPLATES
// 3 ILOAD
// 2 ISTORE
// 0 IADD
// 0 ISUB
// 0 IINC
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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