Support unbound callable function references in inliner

This commit is contained in:
Mikhael Bogdanov
2019-05-22 15:06:05 +02:00
parent 0b59d0b416
commit 3c093f321d
13 changed files with 326 additions and 16 deletions
@@ -689,15 +689,40 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/callableReference"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
}
@TestMetadata("inline.kt")
public void testInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/inline.kt");
@TestMetadata("boundFieldReferenceInInline.kt")
public void testBoundFieldReferenceInInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/boundFieldReferenceInInline.kt");
}
@TestMetadata("boundFunReferenceInInline.kt")
public void testBoundFunReferenceInInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/boundFunReferenceInInline.kt");
}
@TestMetadata("boundPropertyReferenceInInline.kt")
public void testBoundPropertyReferenceInInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/boundPropertyReferenceInInline.kt");
}
@TestMetadata("nameIntrinsicWithImplicitThis.kt")
public void testNameIntrinsicWithImplicitThis() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/nameIntrinsicWithImplicitThis.kt");
}
@TestMetadata("unboundFieldReferenceInInline.kt")
public void testUnboundFieldReferenceInInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/unboundFieldReferenceInInline.kt");
}
@TestMetadata("unboundFunReferenceInInline.kt")
public void testUnboundFunReferenceInInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/unboundFunReferenceInInline.kt");
}
@TestMetadata("unboundPropertyReferenceInInline.kt")
public void testUnboundPropertyReferenceInInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/unboundPropertyReferenceInInline.kt");
}
}
@TestMetadata("compiler/testData/codegen/bytecodeText/capturedVarsOptimization")