JVM_IR: generate instance fields even when reification is needed

The inliner supports that, we just need to generate the reification
markers on GETFIELD to instance fields.
This commit is contained in:
pyos
2021-07-05 13:44:22 +02:00
committed by max-kammerer
parent c01c356817
commit a15a5aa429
17 changed files with 146 additions and 96 deletions
@@ -3156,6 +3156,11 @@ public class IrJsCodegenInlineES6TestGenerated extends AbstractIrJsCodegenInline
runTest("compiler/testData/codegen/boxInline/reified/nonCapturingObjectInLambda.kt");
}
@TestMetadata("singletonLambda.kt")
public void testSingletonLambda() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/singletonLambda.kt");
}
@TestMetadata("compiler/testData/codegen/boxInline/reified/checkCast")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -3156,6 +3156,11 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
runTest("compiler/testData/codegen/boxInline/reified/nonCapturingObjectInLambda.kt");
}
@TestMetadata("singletonLambda.kt")
public void testSingletonLambda() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/singletonLambda.kt");
}
@TestMetadata("compiler/testData/codegen/boxInline/reified/checkCast")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -3156,6 +3156,11 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest {
runTest("compiler/testData/codegen/boxInline/reified/nonCapturingObjectInLambda.kt");
}
@TestMetadata("singletonLambda.kt")
public void testSingletonLambda() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/singletonLambda.kt");
}
@TestMetadata("compiler/testData/codegen/boxInline/reified/checkCast")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)