[Common IR] Do inlining of callable references of inline functions

^KT-52805 Fixed
This commit is contained in:
Alexander Korepanov
2022-07-27 09:33:51 +02:00
committed by Space
parent 3424e756ad
commit bb8da65188
21 changed files with 166 additions and 5 deletions
@@ -4622,6 +4622,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
runTest("js/js.translator/testData/box/inline/callableReference.kt");
}
@Test
@TestMetadata("callableReferenceClassMethod.kt")
public void testCallableReferenceClassMethod() throws Exception {
runTest("js/js.translator/testData/box/inline/callableReferenceClassMethod.kt");
}
@Test
@TestMetadata("callableReferenceOfLocalFun.kt")
public void testCallableReferenceOfLocalFun() throws Exception {
@@ -868,6 +868,12 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest {
runTest("compiler/testData/codegen/boxInline/callableReference/constructor.kt");
}
@Test
@TestMetadata("inlineCallableReference.kt")
public void testInlineCallableReference() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/inlineCallableReference.kt");
}
@Test
@TestMetadata("innerGenericConstuctor.kt")
public void testInnerGenericConstuctor() throws Exception {
@@ -5070,6 +5070,12 @@ public class FirJsTestGenerated extends AbstractFirJsTest {
runTest("js/js.translator/testData/box/inline/callableReference.kt");
}
@Test
@TestMetadata("callableReferenceClassMethod.kt")
public void testCallableReferenceClassMethod() throws Exception {
runTest("js/js.translator/testData/box/inline/callableReferenceClassMethod.kt");
}
@Test
@TestMetadata("callableReferenceOfLocalFun.kt")
public void testCallableReferenceOfLocalFun() throws Exception {
@@ -5070,6 +5070,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/inline/callableReference.kt");
}
@Test
@TestMetadata("callableReferenceClassMethod.kt")
public void testCallableReferenceClassMethod() throws Exception {
runTest("js/js.translator/testData/box/inline/callableReferenceClassMethod.kt");
}
@Test
@TestMetadata("callableReferenceOfLocalFun.kt")
public void testCallableReferenceOfLocalFun() throws Exception {
@@ -868,6 +868,12 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
runTest("compiler/testData/codegen/boxInline/callableReference/constructor.kt");
}
@Test
@TestMetadata("inlineCallableReference.kt")
public void testInlineCallableReference() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/inlineCallableReference.kt");
}
@Test
@TestMetadata("innerGenericConstuctor.kt")
public void testInnerGenericConstuctor() throws Exception {
@@ -793,6 +793,11 @@ public class IrCodegenBoxInlineWasmTestGenerated extends AbstractIrCodegenBoxInl
runTest("compiler/testData/codegen/boxInline/callableReference/constructor.kt");
}
@TestMetadata("inlineCallableReference.kt")
public void testInlineCallableReference() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/inlineCallableReference.kt");
}
@TestMetadata("innerGenericConstuctor.kt")
public void testInnerGenericConstuctor() throws Exception {
runTest("compiler/testData/codegen/boxInline/callableReference/innerGenericConstuctor.kt");