KT-14258 Optimize accesses to properties defined into companion
- Use direct access to property defined into companion object when it is possible rather than always use an accessor to access the property. - Use direct access will speedup runtime performance. - Avoid to generate useless accessors for companion properties. Fix of https://youtrack.jetbrains.com/issue/KT-14258
This commit is contained in:
committed by
Alexander Udalov
parent
fd244be9ca
commit
d0ed0c4049
-8
@@ -1,8 +0,0 @@
|
||||
class A {
|
||||
companion object {
|
||||
private var r: Int = 1;
|
||||
}
|
||||
}
|
||||
// A and companion object constructor call
|
||||
// 3 ALOAD 0
|
||||
// 1 synthetic access\$getR
|
||||
Reference in New Issue
Block a user