diff --git a/compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/ScriptLowering.kt b/compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/ScriptLowering.kt index 541104f43bb..ee4916ae0b8 100644 --- a/compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/ScriptLowering.kt +++ b/compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/ScriptLowering.kt @@ -1052,7 +1052,7 @@ private fun IrDeclarationParent.createThisReceiverParameter( origin: IrDeclarationOrigin, type: IrType ): IrValueParameter = - context.symbolTable.irFactory.createValueParameter( + context.irFactory.createValueParameter( startOffset = startOffset, endOffset = endOffset, origin = origin, diff --git a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/JvmBackendContext.kt b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/JvmBackendContext.kt index 83138e7cdf8..f33c87968b5 100644 --- a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/JvmBackendContext.kt +++ b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/JvmBackendContext.kt @@ -201,7 +201,7 @@ class JvmBackendContext( } state.multiFieldValueClassUnboxInfo = lambda@{ descriptor -> - val irClass = symbolTable.lazyWrapper.descriptorExtension.referenceClass(descriptor).owner + val irClass = referenceClass(descriptor).owner val node = multiFieldValueClassReplacements.getRootMfvcNodeOrNull(irClass) ?: return@lambda null val leavesInfo = node.leaves.map { Triple(defaultTypeMapper.mapType(it.type), it.fullMethodName.asString(), it.fullFieldName.asString()) } diff --git a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/mapping/IrTypeMapper.kt b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/mapping/IrTypeMapper.kt index a4b9a45d88c..abf94768dcf 100644 --- a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/mapping/IrTypeMapper.kt +++ b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/mapping/IrTypeMapper.kt @@ -40,7 +40,7 @@ import org.jetbrains.kotlin.ir.util.isSuspendFunction as isSuspendFunctionImpl open class IrTypeMapper(private val context: JvmBackendContext) : KotlinTypeMapperBase(), TypeMappingContext { override val typeSystem: IrTypeSystemContext = context.typeSystem - override val typeContext: TypeSystemCommonBackendContextForTypeMapping = IrTypeCheckerContextForTypeMapping(typeSystem, context) + override val typeContext: TypeSystemCommonBackendContextForTypeMapping = IrTypeCheckerContextForTypeMapping(context) override fun mapClass(classifier: ClassifierDescriptor): Type = when (classifier) { @@ -223,9 +223,8 @@ open class IrTypeMapper(private val context: JvmBackendContext) : KotlinTypeMapp } private class IrTypeCheckerContextForTypeMapping( - private val baseContext: IrTypeSystemContext, private val backendContext: JvmBackendContext -) : IrTypeSystemContext by baseContext, TypeSystemCommonBackendContextForTypeMapping { +) : IrTypeSystemContext by backendContext.typeSystem, TypeSystemCommonBackendContextForTypeMapping { override fun TypeConstructorMarker.isTypeParameter(): Boolean { return this is IrTypeParameterSymbol } diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/lazy/IrLazySymbolTable.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/lazy/IrLazySymbolTable.kt index 2524e087eb2..7aedd92279d 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/lazy/IrLazySymbolTable.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/lazy/IrLazySymbolTable.kt @@ -13,10 +13,7 @@ import org.jetbrains.kotlin.ir.util.* @OptIn(ObsoleteDescriptorBasedAPI::class) class IrLazySymbolTable(private val originalTable: SymbolTable) : ReferenceSymbolTable by originalTable { - - val lock: IrLock get() = originalTable.lock - - /*Don't force builtins class linking before unbound symbols linking: otherwise stdlib compilation will failed*/ + /*Don't force builtins class linking before unbound symbols linking: otherwise stdlib compilation will fail*/ var stubGenerator: DeclarationStubGenerator? = null @ObsoleteDescriptorBasedAPI