[Commonizer] Refactor CIR to avoid strong refs on descriptors

This is necessary to reduce memory consumption in commonizer while
processing sets of massive libraries.
Ex: ios_x64 (127 libraries) vs ios_arm64 (127 libraries).
This commit is contained in:
Dmitriy Dolovov
2020-02-13 18:51:48 +07:00
parent a0b0f72edf
commit 11e0f427ac
18 changed files with 236 additions and 193 deletions
@@ -1,8 +1,8 @@
expect annotation class CommonAnnotationForAnnotationClassesOnly(text: String) { val text: String }
expect annotation class CommonAnnotation(text: String) { val text: String }
expect annotation class CommonOuterAnnotation(inner: CommonInnerAnnotation) { val inner: CommonInnerAnnotation }
expect annotation class CommonInnerAnnotation(text: String) { val text: String }
//expect annotation class CommonOuterAnnotation(inner: CommonInnerAnnotation) { val inner: CommonInnerAnnotation }
//expect annotation class CommonInnerAnnotation(text: String) { val text: String }
expect var propertyWithoutBackingField: Double
expect val propertyWithBackingField: Double
@@ -15,4 +15,4 @@ expect fun <Q : Number> Q.function2(): Q
expect class AnnotatedClass(value: String) { val value: String }
expect class AnnotatedTypeAlias
expect object ObjectWithNestedAnnotations
//expect object ObjectWithNestedAnnotations