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
@@ -28,3 +28,10 @@ fun box(): String {
// - Initializing the index in the lowered for-loop.
// 1 ICONST_0
// JVM_IR_TEMPLATES
// 2 ILOAD
// 2 ISTORE
// 1 IADD
// 0 ISUB
// 0 IINC
@@ -25,3 +25,10 @@ fun <T : Iterable<*>> test(iterable: T): String {
// 1 next
// 0 component1
// 0 component2
// JVM_IR_TEMPLATES
// 3 ILOAD
// 3 ISTORE
// 1 IADD
// 0 ISUB
// 0 IINC
@@ -31,3 +31,10 @@ fun box(): String {
// The 1st ICONST_0 is for initializing the list. 2nd is for initializing the index in the lowered for-loop.
// 2 ICONST_0
// JVM_IR_TEMPLATES
// 3 ILOAD
// 3 ISTORE
// 1 IADD
// 0 ISUB
// 0 IINC
@@ -31,3 +31,10 @@ fun box(): String {
// The 1st ICONST_0 is for initializing the list. 2nd is for initializing the index in the lowered for-loop.
// 2 ICONST_0
// JVM_IR_TEMPLATES
// 3 ILOAD
// 3 ISTORE
// 1 IADD
// 0 ISUB
// 0 IINC
@@ -31,3 +31,10 @@ fun box(): String {
// The 1st ICONST_0 is for initializing the list. 2nd is for initializing the index in the lowered for-loop.
// 2 ICONST_0
// JVM_IR_TEMPLATES
// 1 ILOAD
// 2 ISTORE
// 1 IADD
// 0 ISUB
// 0 IINC
@@ -34,3 +34,10 @@ fun box(): String {
// The 1st ICONST_0 is for initializing the list. 2nd is for initializing the index in the lowered for-loop.
// 2 ICONST_0
// JVM_IR_TEMPLATES
// 4 ILOAD
// 3 ISTORE
// 1 IADD
// 0 ISUB
// 0 IINC