[K/N] Do not use LazyIr for per-file caches

#KT-63789 Fixed
This commit is contained in:
Igor Chevdar
2023-11-24 17:36:54 +02:00
committed by Space Team
parent b264cf2119
commit 1805f322f8
3 changed files with 14 additions and 17 deletions
@@ -118,18 +118,16 @@ abstract class BasicIrModuleDeserializer(
fileToDeserializerMap[file] = fileDeserializationState.fileDeserializer
if (!fileStrategy.onDemand) {
val topLevelDeclarations = fileDeserializationState.fileDeserializer.reversedSignatureIndex.keys
topLevelDeclarations.forEach {
moduleReversedFileIndex.putIfAbsent(it, fileDeserializationState) // TODO Why not simple put?
}
val topLevelDeclarations = fileDeserializationState.fileDeserializer.reversedSignatureIndex.keys
topLevelDeclarations.forEach {
moduleReversedFileIndex.putIfAbsent(it, fileDeserializationState) // TODO Why not simple put?
}
if (fileStrategy.theWholeWorld) {
fileDeserializationState.enqueueAllDeclarations()
}
if (fileStrategy.theWholeWorld || fileStrategy.explicitlyExported) {
moduleDeserializationState.enqueueFile(fileDeserializationState)
}
if (fileStrategy.theWholeWorld) {
fileDeserializationState.enqueueAllDeclarations()
}
if (fileStrategy.theWholeWorld || fileStrategy.explicitlyExported) {
moduleDeserializationState.enqueueFile(fileDeserializationState)
}
return fileDeserializationState
@@ -398,7 +398,7 @@ enum class DeserializationStrategy(
val theWholeWorld: Boolean,
val inlineBodies: Boolean
) {
ON_DEMAND(true, true, false, false, true),
ON_DEMAND(true, false, false, false, false),
ONLY_REFERENCED(false, true, false, false, true),
ALL(false, true, true, true, true),
EXPLICITLY_EXPORTED(false, true, true, false, true),