diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclassNoBridges.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclassNoBridges.kt index 7e327e9f447..1007fe0c8f1 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclassNoBridges.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclassNoBridges.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JVM_IR // WITH_RUNTIME open class A : Collection { diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclassNoBridges_ir.txt b/compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclassNoBridges_ir.txt new file mode 100644 index 00000000000..d89d0d6a9df --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclassNoBridges_ir.txt @@ -0,0 +1,49 @@ +@kotlin.Metadata +public class A { + // source: 'stubsFromSuperclassNoBridges.kt' + public method (): void + public method add(p0: java.lang.Object): boolean + public method addAll(p0: java.util.Collection): boolean + public method clear(): void + public method contains(p0: java.lang.Object): boolean + public method containsAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean + public method getSize(): int + public method isEmpty(): boolean + public @org.jetbrains.annotations.NotNull method iterator(): java.util.Iterator + public method remove(p0: java.lang.Object): boolean + public method removeAll(p0: java.util.Collection): boolean + public method retainAll(p0: java.util.Collection): boolean + public bridge final method size(): int + public method toArray(): java.lang.Object[] + public method toArray(p0: java.lang.Object[]): java.lang.Object[] +} + +@kotlin.Metadata +public class B { + // source: 'stubsFromSuperclassNoBridges.kt' + public method (): void + public bridge method contains(p0: java.lang.CharSequence): boolean + public bridge final method contains(p0: java.lang.Object): boolean +} + +@kotlin.Metadata +public final class C { + // source: 'stubsFromSuperclassNoBridges.kt' + public method (): void + public method add(p0: int, p1: java.lang.CharSequence): void + public synthetic bridge method add(p0: int, p1: java.lang.Object): void + public method addAll(p0: int, p1: java.util.Collection): boolean + public @org.jetbrains.annotations.NotNull method get(p0: int): java.lang.CharSequence + public synthetic bridge method get(p0: int): java.lang.Object + public method indexOf(@org.jetbrains.annotations.NotNull p0: java.lang.CharSequence): int + public bridge final method indexOf(p0: java.lang.Object): int + public method lastIndexOf(@org.jetbrains.annotations.NotNull p0: java.lang.CharSequence): int + public bridge final method lastIndexOf(p0: java.lang.Object): int + public @org.jetbrains.annotations.NotNull method listIterator(): java.util.ListIterator + public @org.jetbrains.annotations.NotNull method listIterator(p0: int): java.util.ListIterator + public method remove(p0: int): java.lang.CharSequence + public synthetic bridge method remove(p0: int): java.lang.Object + public method set(p0: int, p1: java.lang.CharSequence): java.lang.CharSequence + public synthetic bridge method set(p0: int, p1: java.lang.Object): java.lang.Object + public @org.jetbrains.annotations.NotNull method subList(p0: int, p1: int): java.util.List +} diff --git a/compiler/testData/codegen/bytecodeListing/noRemoveAtInReadOnly.kt b/compiler/testData/codegen/bytecodeListing/noRemoveAtInReadOnly.kt index 54dfc7d6b68..424e70e2710 100644 --- a/compiler/testData/codegen/bytecodeListing/noRemoveAtInReadOnly.kt +++ b/compiler/testData/codegen/bytecodeListing/noRemoveAtInReadOnly.kt @@ -1,3 +1,2 @@ -// IGNORE_BACKEND: JVM_IR abstract class A : List abstract class B : List diff --git a/compiler/testData/codegen/bytecodeListing/noRemoveAtInReadOnly_ir.txt b/compiler/testData/codegen/bytecodeListing/noRemoveAtInReadOnly_ir.txt new file mode 100644 index 00000000000..2a87dfbc8d8 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/noRemoveAtInReadOnly_ir.txt @@ -0,0 +1,55 @@ +@kotlin.Metadata +public abstract class A { + // source: 'noRemoveAtInReadOnly.kt' + public method (): void + public method add(p0: int, p1: java.lang.Object): void + public method add(p0: java.lang.Object): boolean + public method addAll(p0: int, p1: java.util.Collection): boolean + public method addAll(p0: java.util.Collection): boolean + public method clear(): void + public abstract method getSize(): int + public method listIterator(): java.util.ListIterator + public method listIterator(p0: int): java.util.ListIterator + public method remove(p0: int): java.lang.Object + public method remove(p0: java.lang.Object): boolean + public method removeAll(p0: java.util.Collection): boolean + public method retainAll(p0: java.util.Collection): boolean + public method set(p0: int, p1: java.lang.Object): java.lang.Object + public bridge final method size(): int + public method subList(p0: int, p1: int): java.util.List + public method toArray(): java.lang.Object[] + public method toArray(p0: java.lang.Object[]): java.lang.Object[] +} + +@kotlin.Metadata +public abstract class B { + // source: 'noRemoveAtInReadOnly.kt' + public method (): void + public method add(p0: int): boolean + public method add(p0: int, p1: int): void + public synthetic bridge method add(p0: int, p1: java.lang.Object): void + public synthetic bridge method add(p0: java.lang.Object): boolean + public method addAll(p0: int, p1: java.util.Collection): boolean + public method addAll(p0: java.util.Collection): boolean + public method clear(): void + public abstract method contains(p0: int): boolean + public bridge final method contains(p0: java.lang.Object): boolean + public abstract method getSize(): int + public abstract method indexOf(p0: int): int + public bridge final method indexOf(p0: java.lang.Object): int + public abstract method lastIndexOf(p0: int): int + public bridge final method lastIndexOf(p0: java.lang.Object): int + public method listIterator(): java.util.ListIterator + public method listIterator(p0: int): java.util.ListIterator + public method remove(p0: int): int + public synthetic bridge method remove(p0: int): java.lang.Object + public method remove(p0: java.lang.Object): boolean + public method removeAll(p0: java.util.Collection): boolean + public method retainAll(p0: java.util.Collection): boolean + public method set(p0: int, p1: int): java.lang.Integer + public synthetic bridge method set(p0: int, p1: java.lang.Object): java.lang.Object + public bridge final method size(): int + public method subList(p0: int, p1: int): java.util.List + public method toArray(): java.lang.Object[] + public method toArray(p0: java.lang.Object[]): java.lang.Object[] +} diff --git a/compiler/testData/codegen/bytecodeListing/noToArrayInJava.kt b/compiler/testData/codegen/bytecodeListing/noToArrayInJava.kt index ef997dfdd0d..0687d450900 100644 --- a/compiler/testData/codegen/bytecodeListing/noToArrayInJava.kt +++ b/compiler/testData/codegen/bytecodeListing/noToArrayInJava.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JVM_IR // FILE: test/JavaClass.java package test; diff --git a/compiler/testData/codegen/bytecodeListing/noToArrayInJava_ir.txt b/compiler/testData/codegen/bytecodeListing/noToArrayInJava_ir.txt new file mode 100644 index 00000000000..e2bdc6ce56c --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/noToArrayInJava_ir.txt @@ -0,0 +1,21 @@ +@kotlin.Metadata +public interface test/A { + // source: 'main.kt' +} + +@kotlin.Metadata +public abstract class test/B { + // source: 'main.kt' + public method (): void + public method add(p0: java.lang.Object): boolean + public method addAll(p0: java.util.Collection): boolean + public method clear(): void + public abstract method getSize(): int + public method iterator(): java.util.Iterator + public method remove(p0: java.lang.Object): boolean + public method removeAll(p0: java.util.Collection): boolean + public method retainAll(p0: java.util.Collection): boolean + public bridge final method size(): int + public method toArray(): java.lang.Object[] + public method toArray(p0: java.lang.Object[]): java.lang.Object[] +} diff --git a/compiler/testData/codegen/bytecodeListing/specialBridges/noSpecialBridgeIfPresentInSuperClass.kt b/compiler/testData/codegen/bytecodeListing/specialBridges/noSpecialBridgeIfPresentInSuperClass.kt index 02577fd3306..fdc81e4f175 100644 --- a/compiler/testData/codegen/bytecodeListing/specialBridges/noSpecialBridgeIfPresentInSuperClass.kt +++ b/compiler/testData/codegen/bytecodeListing/specialBridges/noSpecialBridgeIfPresentInSuperClass.kt @@ -1,3 +1,2 @@ -// IGNORE_BACKEND: JVM_IR abstract class A : List abstract class B : A() diff --git a/compiler/testData/codegen/bytecodeListing/specialBridges/noSpecialBridgeIfPresentInSuperClass_ir.txt b/compiler/testData/codegen/bytecodeListing/specialBridges/noSpecialBridgeIfPresentInSuperClass_ir.txt new file mode 100644 index 00000000000..62746e1d82a --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/specialBridges/noSpecialBridgeIfPresentInSuperClass_ir.txt @@ -0,0 +1,28 @@ +@kotlin.Metadata +public abstract class A { + // source: 'noSpecialBridgeIfPresentInSuperClass.kt' + public method (): void + public method add(p0: int, p1: java.lang.Object): void + public method add(p0: java.lang.Object): boolean + public method addAll(p0: int, p1: java.util.Collection): boolean + public method addAll(p0: java.util.Collection): boolean + public method clear(): void + public abstract method getSize(): int + public method listIterator(): java.util.ListIterator + public method listIterator(p0: int): java.util.ListIterator + public method remove(p0: int): java.lang.Object + public method remove(p0: java.lang.Object): boolean + public method removeAll(p0: java.util.Collection): boolean + public method retainAll(p0: java.util.Collection): boolean + public method set(p0: int, p1: java.lang.Object): java.lang.Object + public bridge final method size(): int + public method subList(p0: int, p1: int): java.util.List + public method toArray(): java.lang.Object[] + public method toArray(p0: java.lang.Object[]): java.lang.Object[] +} + +@kotlin.Metadata +public abstract class B { + // source: 'noSpecialBridgeIfPresentInSuperClass.kt' + public method (): void +}