From 939f25333e1703b4277f96c67251864675e75c78 Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Mon, 23 Aug 2021 13:50:30 +0300 Subject: [PATCH] JVM update testData --- .../codegen/bytecodeText/controlStructures/kt17110.kt | 2 +- .../coroutines/debug/localVariableCorrectLabel.kt | 4 ++-- compiler/testData/codegen/bytecodeText/staticFields/object.kt | 2 +- .../bytecodeText/storeStackBeforeInline/arrayConstructor.kt | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/compiler/testData/codegen/bytecodeText/controlStructures/kt17110.kt b/compiler/testData/codegen/bytecodeText/controlStructures/kt17110.kt index bb3125d0fe9..cb5e9fa9bf3 100644 --- a/compiler/testData/codegen/bytecodeText/controlStructures/kt17110.kt +++ b/compiler/testData/codegen/bytecodeText/controlStructures/kt17110.kt @@ -17,7 +17,7 @@ fun infiniteLoop() { } // JVM_TEMPLATES -// 2 GOTO L7 +// 2 GOTO L6 // 1 GOTO L1 // JVM_IR_TEMPLATES diff --git a/compiler/testData/codegen/bytecodeText/coroutines/debug/localVariableCorrectLabel.kt b/compiler/testData/codegen/bytecodeText/coroutines/debug/localVariableCorrectLabel.kt index 08be3e69140..9222a9be790 100644 --- a/compiler/testData/codegen/bytecodeText/coroutines/debug/localVariableCorrectLabel.kt +++ b/compiler/testData/codegen/bytecodeText/coroutines/debug/localVariableCorrectLabel.kt @@ -19,7 +19,7 @@ suspend fun SequenceScope.awaitSeq(): Int = 42 // 1 LOCALVARIABLE a I L[0-9]+ L4 // JVM_TEMPLATES -// 1 LINENUMBER 9 L18 -// 1 LOCALVARIABLE a I L[0-9]+ L18 +// 1 LINENUMBER 9 L14 +// 1 LOCALVARIABLE a I L[0-9]+ L14 // IGNORE_BACKEND_FIR: JVM_IR diff --git a/compiler/testData/codegen/bytecodeText/staticFields/object.kt b/compiler/testData/codegen/bytecodeText/staticFields/object.kt index 75b883b8c17..a8d3783cb09 100644 --- a/compiler/testData/codegen/bytecodeText/staticFields/object.kt +++ b/compiler/testData/codegen/bytecodeText/staticFields/object.kt @@ -5,7 +5,7 @@ object A { // JVM_TEMPLATES // Field initialized in constant pool // A super constructor call and INSTANCE put -// 2 ALOAD 0 +// 1 ALOAD 0 // JVM_IR_TEMPLATES // JVM_IR generates 'dup' instead of 'astore 0; aload 0' in method of object class diff --git a/compiler/testData/codegen/bytecodeText/storeStackBeforeInline/arrayConstructor.kt b/compiler/testData/codegen/bytecodeText/storeStackBeforeInline/arrayConstructor.kt index 0a90ec9c82d..3605eddda7e 100644 --- a/compiler/testData/codegen/bytecodeText/storeStackBeforeInline/arrayConstructor.kt +++ b/compiler/testData/codegen/bytecodeText/storeStackBeforeInline/arrayConstructor.kt @@ -3,8 +3,8 @@ fun test(): Int = "123".indexOfAny(CharArray(1000) { '1' }) // JVM_TEMPLATES: -// 5 ALOAD -// 5 ASTORE +// 4 ALOAD +// 4 ASTORE // 7 ILOAD // 6 ISTORE