JVM_IR KT-45103 optimize direct invoke for lambdas and callable refs
This commit is contained in:
committed by
teamcityserver
parent
bfb1a06f3d
commit
851980e36f
@@ -1,28 +1,31 @@
|
||||
fun test() {
|
||||
|
||||
fun local(){
|
||||
{
|
||||
val lam = {
|
||||
//static instance access
|
||||
local()
|
||||
}()
|
||||
}
|
||||
lam()
|
||||
}
|
||||
|
||||
//static instance access
|
||||
{
|
||||
val lam = {
|
||||
//static instance access
|
||||
local()
|
||||
}()
|
||||
}
|
||||
lam()
|
||||
|
||||
//static instance access
|
||||
(::local)()
|
||||
val cr = ::local
|
||||
cr()
|
||||
}
|
||||
|
||||
// JVM_TEMPLATES
|
||||
// 3 GETSTATIC ConstClosureOptimizationKt\$test\$1\.INSTANCE
|
||||
// 1 GETSTATIC ConstClosureOptimizationKt\$test\$2\.INSTANCE
|
||||
// 1 GETSTATIC ConstClosureOptimizationKt\$test\$3\.INSTANCE
|
||||
// 1 GETSTATIC ConstClosureOptimizationKt\$test\$lam\$1\.INSTANCE
|
||||
// 1 GETSTATIC ConstClosureOptimizationKt\$test\$cr\$1\.INSTANCE
|
||||
|
||||
// JVM_IR_TEMPLATES
|
||||
// 1 GETSTATIC ConstClosureOptimizationKt\$test\$1.INSTANCE
|
||||
// 1 GETSTATIC ConstClosureOptimizationKt\$test\$2.INSTANCE
|
||||
// 1 GETSTATIC ConstClosureOptimizationKt\$test\$local\$1.INSTANCE
|
||||
// 1 GETSTATIC ConstClosureOptimizationKt\$test\$cr\$1.INSTANCE
|
||||
// 1 GETSTATIC ConstClosureOptimizationKt\$test\$lam\$1.INSTANCE
|
||||
// 1 GETSTATIC ConstClosureOptimizationKt\$test\$local\$lam\$1.INSTANCE
|
||||
|
||||
Reference in New Issue
Block a user