JVM IR: Move direct invoke optimization into a separate pass
This also changes the transformation to inline the body of a directly invoked lambda rather than producing a call to an anonymous local function. The latter is unsupported in inline functions and problematic from an ABI perspective, since it results in functions whose name depends on the entire source code up to this point.
This commit is contained in:
committed by
Alexander Udalov
parent
7d59c7689c
commit
f0760e0550
+6
@@ -43,6 +43,12 @@ public class FirLocalVariableTestGenerated extends AbstractFirLocalVariableTest
|
||||
runTest("compiler/testData/debug/localVariables/copyFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("directInvoke.kt")
|
||||
public void testDirectInvoke() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/directInvoke.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("doWhile.kt")
|
||||
public void testDoWhile() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user