[K/JS] Add useEsClasses to list of compiler arguments that invalidate IC cache ^KT-61795 Fixed
This commit is contained in:
@@ -62,7 +62,6 @@ class JsIrBackendContext(
|
||||
val additionalExportedDeclarationNames: Set<FqName>,
|
||||
keep: Set<String>,
|
||||
override val configuration: CompilerConfiguration, // TODO: remove configuration from backend context
|
||||
override val es6mode: Boolean = false,
|
||||
val dceRuntimeDiagnostic: RuntimeDiagnostic? = null,
|
||||
val safeExternalBoolean: Boolean = false,
|
||||
val safeExternalBooleanDiagnostic: RuntimeDiagnostic? = null,
|
||||
@@ -104,6 +103,7 @@ class JsIrBackendContext(
|
||||
|
||||
val devMode = configuration[JSConfigurationKeys.DEVELOPER_MODE] ?: false
|
||||
val errorPolicy = configuration[JSConfigurationKeys.ERROR_TOLERANCE_POLICY] ?: ErrorTolerancePolicy.DEFAULT
|
||||
override val es6mode = configuration[JSConfigurationKeys.USE_ES6_CLASSES] ?: false
|
||||
|
||||
val externalPackageFragment = mutableMapOf<IrFileSymbol, IrFile>()
|
||||
|
||||
|
||||
@@ -43,7 +43,6 @@ fun compile(
|
||||
exportedDeclarations: Set<FqName> = emptySet(),
|
||||
keep: Set<String> = emptySet(),
|
||||
dceRuntimeDiagnostic: RuntimeDiagnostic? = null,
|
||||
es6mode: Boolean = false,
|
||||
verifySignatures: Boolean = true,
|
||||
safeExternalBoolean: Boolean = false,
|
||||
safeExternalBooleanDiagnostic: RuntimeDiagnostic? = null,
|
||||
@@ -67,7 +66,6 @@ fun compile(
|
||||
exportedDeclarations,
|
||||
keep,
|
||||
dceRuntimeDiagnostic,
|
||||
es6mode,
|
||||
safeExternalBoolean,
|
||||
safeExternalBooleanDiagnostic,
|
||||
granularity,
|
||||
@@ -87,7 +85,6 @@ fun compileIr(
|
||||
exportedDeclarations: Set<FqName>,
|
||||
keep: Set<String>,
|
||||
dceRuntimeDiagnostic: RuntimeDiagnostic?,
|
||||
es6mode: Boolean,
|
||||
safeExternalBoolean: Boolean,
|
||||
safeExternalBooleanDiagnostic: RuntimeDiagnostic?,
|
||||
granularity: JsGenerationGranularity,
|
||||
@@ -108,7 +105,6 @@ fun compileIr(
|
||||
exportedDeclarations,
|
||||
keep,
|
||||
configuration,
|
||||
es6mode = es6mode,
|
||||
dceRuntimeDiagnostic = dceRuntimeDiagnostic,
|
||||
safeExternalBoolean = safeExternalBoolean,
|
||||
safeExternalBooleanDiagnostic = safeExternalBooleanDiagnostic,
|
||||
|
||||
@@ -27,7 +27,6 @@ class JsIrCompilerWithIC(
|
||||
granularity: JsGenerationGranularity,
|
||||
private val phaseConfig: PhaseConfig,
|
||||
exportedDeclarations: Set<FqName> = emptySet(),
|
||||
es6mode: Boolean = false
|
||||
) : JsIrCompilerICInterface {
|
||||
private val context: JsIrBackendContext
|
||||
|
||||
@@ -42,7 +41,6 @@ class JsIrCompilerWithIC(
|
||||
exportedDeclarations,
|
||||
keep = emptySet(),
|
||||
configuration = configuration,
|
||||
es6mode = es6mode,
|
||||
granularity = granularity,
|
||||
incrementalCacheEnabled = true
|
||||
)
|
||||
|
||||
@@ -782,7 +782,6 @@ fun rebuildCacheForDirtyFiles(
|
||||
irFactory: IrFactory,
|
||||
exportedDeclarations: Set<FqName>,
|
||||
mainArguments: List<String>?,
|
||||
es6mode: Boolean
|
||||
): Pair<IrModuleFragment, List<Pair<IrFile, List<JsIrProgramFragment>>>> {
|
||||
val internationService = IrInterningService()
|
||||
val emptyMetadata = object : KotlinSourceFileExports() {
|
||||
@@ -809,7 +808,6 @@ fun rebuildCacheForDirtyFiles(
|
||||
JsGenerationGranularity.PER_MODULE,
|
||||
PhaseConfig(jsPhases),
|
||||
exportedDeclarations,
|
||||
es6mode
|
||||
)
|
||||
|
||||
// Load declarations referenced during `context` initialization
|
||||
|
||||
+1
@@ -152,6 +152,7 @@ internal class ICHasher {
|
||||
JSConfigurationKeys.SOURCE_MAP,
|
||||
JSConfigurationKeys.META_INFO,
|
||||
JSConfigurationKeys.DEVELOPER_MODE,
|
||||
JSConfigurationKeys.USE_ES6_CLASSES,
|
||||
JSConfigurationKeys.GENERATE_POLYFILLS,
|
||||
JSConfigurationKeys.GENERATE_DTS,
|
||||
JSConfigurationKeys.PROPERTY_LAZY_INITIALIZATION,
|
||||
|
||||
Reference in New Issue
Block a user