[K/JS, K/Wasm] Optimize simple objects declaration and usage ^Fixed KT-58797

This commit is contained in:
Artem Kobzar
2023-06-02 14:23:40 +00:00
committed by Space Team
parent 7d6275e228
commit bfd57fd2df
39 changed files with 551 additions and 90 deletions
@@ -43,7 +43,7 @@ open class PropertyAccessorInlineLowering(
private fun canBeInlined(callee: IrSimpleFunction): Boolean {
val property = callee.correspondingPropertySymbol?.owner ?: return false
// Some devirtualization required here
// Some de-virtualization required here
if (!property.isSafeToInline(container)) return false
val parent = property.parent