JS IR IC: pass through more compiler flags

This commit is contained in:
Anton Bannykh
2021-07-09 11:55:53 +03:00
committed by teamcityserver
parent 5dc6e1b473
commit 8553c6ef58
2 changed files with 20 additions and 0 deletions
@@ -84,6 +84,10 @@ fun compile(
multiModule, multiModule,
relativeRequirePath, relativeRequirePath,
propertyLazyInitialization, propertyLazyInitialization,
baseClassIntoMetadata,
legacyPropertyAccess,
safeExternalBoolean,
safeExternalBooleanDiagnostic,
useStdlibCache, useStdlibCache,
icCache, icCache,
) )
@@ -133,6 +133,10 @@ fun icCompile(
multiModule: Boolean = false, multiModule: Boolean = false,
relativeRequirePath: Boolean = false, relativeRequirePath: Boolean = false,
propertyLazyInitialization: Boolean, propertyLazyInitialization: Boolean,
legacyPropertyAccess: Boolean = false,
baseClassIntoMetadata: Boolean = false,
safeExternalBoolean: Boolean = false,
safeExternalBooleanDiagnostic: RuntimeDiagnostic? = null,
useStdlibCache: Boolean, useStdlibCache: Boolean,
icCache: Map<String, SerializedIcData> = emptyMap() icCache: Map<String, SerializedIcData> = emptyMap()
): CompilerResult { ): CompilerResult {
@@ -153,6 +157,10 @@ fun icCompile(
es6mode, es6mode,
propertyLazyInitialization, propertyLazyInitialization,
irFactory, irFactory,
baseClassIntoMetadata,
legacyPropertyAccess,
safeExternalBoolean,
safeExternalBooleanDiagnostic,
useStdlibCache, useStdlibCache,
useStdlibCache, useStdlibCache,
icCache, icCache,
@@ -222,6 +230,10 @@ private fun prepareIr(
es6mode: Boolean = false, es6mode: Boolean = false,
propertyLazyInitialization: Boolean, propertyLazyInitialization: Boolean,
irFactory: PersistentIrFactory, irFactory: PersistentIrFactory,
legacyPropertyAccess: Boolean = false,
baseClassIntoMetadata: Boolean = false,
safeExternalBoolean: Boolean = false,
safeExternalBooleanDiagnostic: RuntimeDiagnostic? = null,
useGlobalSignatures: Boolean, useGlobalSignatures: Boolean,
useStdlibCache: Boolean, useStdlibCache: Boolean,
icCache: Map<String, SerializedIcData>, icCache: Map<String, SerializedIcData>,
@@ -256,6 +268,10 @@ private fun prepareIr(
es6mode = es6mode, es6mode = es6mode,
dceRuntimeDiagnostic = dceRuntimeDiagnostic, dceRuntimeDiagnostic = dceRuntimeDiagnostic,
propertyLazyInitialization = propertyLazyInitialization, propertyLazyInitialization = propertyLazyInitialization,
legacyPropertyAccess = legacyPropertyAccess,
baseClassIntoMetadata = baseClassIntoMetadata,
safeExternalBoolean = safeExternalBoolean,
safeExternalBooleanDiagnostic = safeExternalBooleanDiagnostic,
mapping = deserializer.mapping, mapping = deserializer.mapping,
) )