Enable lightweight lambdas (aka invokedynamic) since 2.0

#KT-45375 Fixed
 #KT-58173 Open
This commit is contained in:
Alexander Udalov
2023-04-20 11:07:41 +02:00
committed by Space Team
parent b1b33475fa
commit 3f034e8b67
80 changed files with 4686 additions and 253 deletions
@@ -16,7 +16,7 @@ fun box() {
foo(MyPair("X", "Y")) { (x, y) -> x + y }
}
// EXPECTATIONS JVM_IR
// EXPECTATIONS ClassicFrontend JVM_IR
// test.kt:16 box:
// test.kt:3 <init>: x:java.lang.String="X":java.lang.String, y:java.lang.String="Y":java.lang.String
// test.kt:16 box:
@@ -30,6 +30,20 @@ fun box() {
// test.kt:16 box:
// test.kt:17 box:
// EXPECTATIONS FIR JVM_IR
// test.kt:16 box:
// test.kt:3 <init>: x:java.lang.String="X":java.lang.String, y:java.lang.String="Y":java.lang.String
// test.kt:16 box:
// test.kt:13 foo: a:MyPair=MyPair, block:kotlin.jvm.functions.Function1=TestKt$<lambda>
// test.kt:16 box$lambda$0:
// test.kt:5 component1:
// test.kt:16 box$lambda$0:
// test.kt:9 component2:
// test.kt:16 box$lambda$0: x:java.lang.String="O":java.lang.String
// test.kt:13 foo: a:MyPair=MyPair, block:kotlin.jvm.functions.Function1=TestKt$<lambda>
// test.kt:16 box:
// test.kt:17 box:
// EXPECTATIONS JS_IR
// test.kt:16 box:
// test.kt:3 <init>: x="X":kotlin.String, y="Y":kotlin.String