JVM_IR: refactor MoveCompanionObjectFieldsLowering
* Extract replacement of IrGetField/IrSetField into a separate file-level lowering (should reduce the amount of work to linear in the number of classes rather than potentially quadratic) * Extract static backing field construction into JvmDeclarationFactory and move that lowering after PropertiesToFields lowering to reduce code duplication
This commit is contained in:
+10
@@ -15058,6 +15058,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/jvmField/constructorProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fileOrder.kt")
|
||||
public void testFileOrder() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jvmField/fileOrder.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fileOrderWithCopying.kt")
|
||||
public void testFileOrderWithCopying() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jvmField/fileOrderWithCopying.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("initializersOrder.kt")
|
||||
public void testInitializersOrder() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jvmField/initializersOrder.kt");
|
||||
|
||||
Reference in New Issue
Block a user