JVM prune exception edges in DFA in some cases

This commit is contained in:
Dmitry Petrov
2022-02-22 15:09:16 +03:00
committed by Space
parent 817f9f13b7
commit 872b81ac8a
14 changed files with 219 additions and 73 deletions
@@ -6698,11 +6698,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/controlStructures/quicksort.kt");
}
@TestMetadata("slowHtmlLikeDsl.kt")
public void testSlowHtmlLikeDsl() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/slowHtmlLikeDsl.kt");
}
@TestMetadata("tcbInEliminatedCondition.kt")
public void testTcbInEliminatedCondition() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/tcbInEliminatedCondition.kt");
@@ -7284,6 +7279,29 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
}
}
@TestMetadata("compiler/testData/codegen/box/controlStructures/slowDsl")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SlowDsl extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSlowDsl() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/slowDsl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("slowHtmlLikeDsl.kt")
public void testSlowHtmlLikeDsl() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/slowDsl/slowHtmlLikeDsl.kt");
}
@TestMetadata("slowHtmlLikeDslNoInline.kt")
public void testSlowHtmlLikeDslNoInline() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/slowDsl/slowHtmlLikeDslNoInline.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)