diff --git a/compiler/testData/codegen/bytecodeListing/inlineClasses/companionObjectInsideInlineClass.txt b/compiler/testData/codegen/bytecodeListing/inlineClasses/companionObjectInsideInlineClass.txt index 4a5791780c1..20145196342 100644 --- a/compiler/testData/codegen/bytecodeListing/inlineClasses/companionObjectInsideInlineClass.txt +++ b/compiler/testData/codegen/bytecodeListing/inlineClasses/companionObjectInsideInlineClass.txt @@ -7,7 +7,7 @@ public final class Foo$Companion { } @kotlin.Metadata -public static class Foo$Erased { +static class Foo$Erased { method (): void public final static @org.jetbrains.annotations.NotNull method box(p0: int): Foo public static method constructor(p0: int): int diff --git a/compiler/testData/codegen/bytecodeListing/inlineClasses/computablePropertiesInsideInlineClass.txt b/compiler/testData/codegen/bytecodeListing/inlineClasses/computablePropertiesInsideInlineClass.txt index 885af5dfca0..c1bba2d4260 100644 --- a/compiler/testData/codegen/bytecodeListing/inlineClasses/computablePropertiesInsideInlineClass.txt +++ b/compiler/testData/codegen/bytecodeListing/inlineClasses/computablePropertiesInsideInlineClass.txt @@ -1,5 +1,5 @@ @kotlin.Metadata -public static class Foo$Erased { +static class Foo$Erased { method (): void public final static @org.jetbrains.annotations.NotNull method box(p0: int): Foo public static method constructor(p0: int): int diff --git a/compiler/testData/codegen/bytecodeListing/inlineClasses/noBridgesForErasedInlineClass.txt b/compiler/testData/codegen/bytecodeListing/inlineClasses/noBridgesForErasedInlineClass.txt index 9bcf94a7d6f..45c409f2f35 100644 --- a/compiler/testData/codegen/bytecodeListing/inlineClasses/noBridgesForErasedInlineClass.txt +++ b/compiler/testData/codegen/bytecodeListing/inlineClasses/noBridgesForErasedInlineClass.txt @@ -4,7 +4,7 @@ public interface A { } @kotlin.Metadata -public static class Foo$Erased { +static class Foo$Erased { method (): void public final static @org.jetbrains.annotations.NotNull method box(p0: long): Foo public static method constructor(p0: long): long diff --git a/compiler/testData/codegen/bytecodeListing/inlineClasses/shapeOfInlineClassWithPrimitive.txt b/compiler/testData/codegen/bytecodeListing/inlineClasses/shapeOfInlineClassWithPrimitive.txt index 27304eac248..f5f4c19fd88 100644 --- a/compiler/testData/codegen/bytecodeListing/inlineClasses/shapeOfInlineClassWithPrimitive.txt +++ b/compiler/testData/codegen/bytecodeListing/inlineClasses/shapeOfInlineClassWithPrimitive.txt @@ -1,5 +1,5 @@ @kotlin.Metadata -public static class Foo$Erased { +static class Foo$Erased { method (): void public final static @org.jetbrains.annotations.NotNull method box(p0: long): Foo public static method constructor(p0: long): long diff --git a/compiler/testData/codegen/bytecodeText/boxingOptimization/boxingAndEquals.kt b/compiler/testData/codegen/bytecodeText/boxingOptimization/boxingAndEquals.kt index 8056b38c3ef..7afe8fc31b4 100644 --- a/compiler/testData/codegen/bytecodeText/boxingOptimization/boxingAndEquals.kt +++ b/compiler/testData/codegen/bytecodeText/boxingOptimization/boxingAndEquals.kt @@ -21,7 +21,7 @@ fun getAndCheckInlinedInt(a: InlinedInt, b: InlinedInt) = // 0 valueOf // 0 Value // 1 areEqual -// 2 INVOKESTATIC InlinedInt\$Erased.box +// 2 INVOKESTATIC InlinedInt\.box // 0 INVOKEVIRTUAL InlinedInt.unbox // FILE: Inline.kt diff --git a/compiler/testData/codegen/bytecodeText/inlineClasses/synthesizedBoxMethodIsNotMangled.kt b/compiler/testData/codegen/bytecodeText/inlineClasses/synthesizedBoxMethodIsNotMangled.kt index 502ad15b22e..da21ee77231 100644 --- a/compiler/testData/codegen/bytecodeText/inlineClasses/synthesizedBoxMethodIsNotMangled.kt +++ b/compiler/testData/codegen/bytecodeText/inlineClasses/synthesizedBoxMethodIsNotMangled.kt @@ -8,4 +8,4 @@ fun test(zs: MutableList, z: Z2) { } // 1 public final static box\(I\)LZ2; -// 1 INVOKESTATIC Z2\$Erased.box \(I\)LZ2; \ No newline at end of file +// 1 INVOKESTATIC Z2\.box \(I\)LZ2; \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/BytecodeTextTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/BytecodeTextTestGenerated.java index efed652593b..74a11fe97f1 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/BytecodeTextTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/BytecodeTextTestGenerated.java @@ -2068,9 +2068,9 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest { runTest("compiler/testData/codegen/bytecodeText/inlineClasses/constructorWithInlineClassParametersIsNotMangled.kt"); } - @TestMetadata("functionsWithInlineClassParametersHaveStableMangledNames.kt") - public void testFunctionsWithInlineClassParametersHaveStableMangledNames() throws Exception { - runTest("compiler/testData/codegen/bytecodeText/inlineClasses/functionsWithInlineClassParametersHaveStableMangledNames.kt"); + @TestMetadata("equalsIsCalledByInlineClass.kt") + public void testEqualsIsCalledByInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/equalsIsCalledByInlineClass.kt"); } @TestMetadata("factoryMethodForSecondaryConstructorsCalledByInlineClass.kt") @@ -2078,6 +2078,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest { runTest("compiler/testData/codegen/bytecodeText/inlineClasses/factoryMethodForSecondaryConstructorsCalledByInlineClass.kt"); } + @TestMetadata("functionsWithInlineClassParametersHaveStableMangledNames.kt") + public void testFunctionsWithInlineClassParametersHaveStableMangledNames() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/functionsWithInlineClassParametersHaveStableMangledNames.kt"); + } + @TestMetadata("generationOfAccessorToUnderlyingValue.kt") public void testGenerationOfAccessorToUnderlyingValue() throws Exception { runTest("compiler/testData/codegen/bytecodeText/inlineClasses/generationOfAccessorToUnderlyingValue.kt"); @@ -2153,11 +2158,6 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest { runTest("compiler/testData/codegen/bytecodeText/inlineClasses/passInlineClassesWithSpreadOperatorToVarargs.kt"); } - @TestMetadata("propertySetterWithInlineClassTypeArgument.kt") - public void testPropertySetterWithInlineClassTypeArgument() throws Exception { - runTest("compiler/testData/codegen/bytecodeText/inlineClasses/propertySetterWithInlineClassTypeArgument.kt"); - } - @TestMetadata("primaryConstructorCalledByInlineClass.kt") public void testPrimaryConstructorCalledByInlineClass() throws Exception { runTest("compiler/testData/codegen/bytecodeText/inlineClasses/primaryConstructorCalledByInlineClass.kt"); @@ -2168,6 +2168,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest { runTest("compiler/testData/codegen/bytecodeText/inlineClasses/propertyAccessorsAreCalledByInlineClass.kt"); } + @TestMetadata("propertySetterWithInlineClassTypeArgument.kt") + public void testPropertySetterWithInlineClassTypeArgument() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/propertySetterWithInlineClassTypeArgument.kt"); + } + @TestMetadata("skipCallToUnderlyingValueOfInlineClass.kt") public void testSkipCallToUnderlyingValueOfInlineClass() throws Exception { runTest("compiler/testData/codegen/bytecodeText/inlineClasses/skipCallToUnderlyingValueOfInlineClass.kt");