JVM_IR Spill stack on array constructor call

KT-42932
This commit is contained in:
Dmitry Petrov
2021-03-11 18:03:37 +03:00
parent dbfe45993a
commit 44e6483090
19 changed files with 326 additions and 10 deletions
@@ -846,6 +846,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/arrays/kt4118.kt");
}
@Test
@TestMetadata("kt42932.kt")
public void testKt42932() throws Exception {
runTest("compiler/testData/codegen/box/arrays/kt42932.kt");
}
@Test
@TestMetadata("kt4348.kt")
public void testKt4348() throws Exception {
@@ -858,6 +864,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/arrays/kt4357.kt");
}
@Test
@TestMetadata("kt45410.kt")
public void testKt45410() throws Exception {
runTest("compiler/testData/codegen/box/arrays/kt45410.kt");
}
@Test
@TestMetadata("kt503.kt")
public void testKt503() throws Exception {
@@ -4866,6 +4866,12 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/storeStackBeforeInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@Test
@TestMetadata("arrayConstructor.kt")
public void testArrayConstructor() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/storeStackBeforeInline/arrayConstructor.kt");
}
@Test
@TestMetadata("differentTypes.kt")
public void testDifferentTypes() throws Exception {
@@ -846,6 +846,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/arrays/kt4118.kt");
}
@Test
@TestMetadata("kt42932.kt")
public void testKt42932() throws Exception {
runTest("compiler/testData/codegen/box/arrays/kt42932.kt");
}
@Test
@TestMetadata("kt4348.kt")
public void testKt4348() throws Exception {
@@ -858,6 +864,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/arrays/kt4357.kt");
}
@Test
@TestMetadata("kt45410.kt")
public void testKt45410() throws Exception {
runTest("compiler/testData/codegen/box/arrays/kt45410.kt");
}
@Test
@TestMetadata("kt503.kt")
public void testKt503() throws Exception {
@@ -4998,6 +4998,12 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/storeStackBeforeInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("arrayConstructor.kt")
public void testArrayConstructor() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/storeStackBeforeInline/arrayConstructor.kt");
}
@Test
@TestMetadata("differentTypes.kt")
public void testDifferentTypes() throws Exception {