Instance field generation in objects
This commit is contained in:
@@ -4,4 +4,4 @@ class A {
|
||||
}
|
||||
}
|
||||
// A and companion object constructor call
|
||||
// 3 ALOAD 0
|
||||
// 4 ALOAD 0
|
||||
+1
-1
@@ -4,5 +4,5 @@ class A {
|
||||
}
|
||||
}
|
||||
// A and companion object constructor call
|
||||
// 3 ALOAD 0
|
||||
// 4 ALOAD 0
|
||||
// 1 synthetic access\$getR
|
||||
|
||||
@@ -2,5 +2,5 @@ object A {
|
||||
val r: Int = 1
|
||||
}
|
||||
// Field initialized in constant pool
|
||||
// A super constructor call and INSTANCE$ put
|
||||
// 2 ALOAD 0
|
||||
// A super constructor call, INSTANCE and INSTANCE$ put
|
||||
// 3 ALOAD 0
|
||||
Reference in New Issue
Block a user