[K2, MPP] Add common constructorCache to Fir2IrCommonMemberStorage

Use it in Fir2IrDeclarationStorage

^KT-56660 Fixed
This commit is contained in:
Ivan Kochurkin
2023-03-14 20:55:52 +01:00
committed by Space Team
parent 930237b60e
commit 227018624e
7 changed files with 34 additions and 1 deletions
@@ -45,6 +45,8 @@ class Fir2IrCommonMemberStorage(
val functionCache: ConcurrentHashMap<FirFunction, IrSimpleFunction> = ConcurrentHashMap()
val constructorCache: ConcurrentHashMap<FirConstructor, IrConstructor> = ConcurrentHashMap()
val propertyCache: ConcurrentHashMap<FirProperty, IrProperty> = ConcurrentHashMap()
val fakeOverridesInClass: MutableMap<IrClass, MutableMap<FirCallableDeclaration, FirCallableDeclaration>> = mutableMapOf()
@@ -80,7 +80,7 @@ class Fir2IrDeclarationStorage(
private val functionCache: ConcurrentHashMap<FirFunction, IrSimpleFunction> = commonMemberStorage.functionCache
private val constructorCache: ConcurrentHashMap<FirConstructor, IrConstructor> = ConcurrentHashMap()
private val constructorCache: ConcurrentHashMap<FirConstructor, IrConstructor> = commonMemberStorage.constructorCache
private val initializerCache: ConcurrentHashMap<FirAnonymousInitializer, IrAnonymousInitializer> = ConcurrentHashMap()