Optimize defaults format: avoid reduntant stack normalization operations

This commit is contained in:
Mikhael Bogdanov
2017-01-25 11:26:15 +01:00
parent fc4be17623
commit 4c7a07bed6
3 changed files with 19 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
fun test(a: Int, z: String = try{"1"} catch (e: Exception) {"2"}) {
"Default body"
}
//1 ILOAD 0\s*ALOAD 1\s*INVOKESTATIC DefaultMethodBodyKt\.test \(ILjava/lang/String;\)V