79d378f2bd
The patch adopts and reuses the optimizations from the legacy backend. The optimizations remove useless temporary variables, statements and simplify generated JS code. The optimizations can be disabled by `-Xoptimize-generated-js=false`. Related to KT-51139
26 lines
457 B
Kotlin
Vendored
26 lines
457 B
Kotlin
Vendored
// IGNORE_INLINER: IR
|
|
// FILE: test.kt
|
|
|
|
fun box() {
|
|
foo()()
|
|
}
|
|
// FILE: test1.kt
|
|
// aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
|
inline fun foo() = {
|
|
}
|
|
// EXPECTATIONS JVM JVM_IR
|
|
// test.kt:5 box
|
|
// test1.kt:9 box
|
|
// test1.kt:10 box
|
|
// EXPECTATIONS JVM_IR
|
|
// test.kt:5 box
|
|
// test1.kt:10 invoke
|
|
// test.kt:5 box
|
|
// EXPECTATIONS JVM JVM_IR
|
|
// test.kt:6 box
|
|
|
|
// EXPECTATIONS JS_IR
|
|
// test1.kt:9 box
|
|
// test1.kt:7 box$lambda
|
|
// test.kt:6 box
|