[JVM_IR] Reduce the amount of super suffixes on accesibility bridges.

The super suffix was used for any static field/method that needed
an accessor. We should only use it when that field or method is
inherited.
This commit is contained in:
Mads Ager
2021-01-19 14:25:26 +01:00
committed by Alexander Udalov
parent a33877a9b9
commit ef36b81c67
8 changed files with 60 additions and 10 deletions
@@ -36,6 +36,11 @@ public class BytecodeListingTestGenerated extends AbstractBytecodeListingTest {
runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt");
}
@TestMetadata("accessorForTopLevelMembers.kt")
public void testAccessorForTopLevelMembers() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/accessorForTopLevelMembers.kt");
}
public void testAllFilesPresentInBytecodeListing() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@@ -36,6 +36,11 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes
runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt");
}
@TestMetadata("accessorForTopLevelMembers.kt")
public void testAccessorForTopLevelMembers() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/accessorForTopLevelMembers.kt");
}
public void testAllFilesPresentInBytecodeListing() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}