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,
relativeRequirePath,
propertyLazyInitialization,
baseClassIntoMetadata,
legacyPropertyAccess,
safeExternalBoolean,
safeExternalBooleanDiagnostic,
useStdlibCache,
icCache,
)
@@ -133,6 +133,10 @@ fun icCompile(
multiModule: Boolean = false,
relativeRequirePath: Boolean = false,
propertyLazyInitialization: Boolean,
legacyPropertyAccess: Boolean = false,
baseClassIntoMetadata: Boolean = false,
safeExternalBoolean: Boolean = false,
safeExternalBooleanDiagnostic: RuntimeDiagnostic? = null,
useStdlibCache: Boolean,
icCache: Map<String, SerializedIcData> = emptyMap()
): CompilerResult {
@@ -153,6 +157,10 @@ fun icCompile(
es6mode,
propertyLazyInitialization,
irFactory,
baseClassIntoMetadata,
legacyPropertyAccess,
safeExternalBoolean,
safeExternalBooleanDiagnostic,
useStdlibCache,
useStdlibCache,
icCache,
@@ -222,6 +230,10 @@ private fun prepareIr(
es6mode: Boolean = false,
propertyLazyInitialization: Boolean,
irFactory: PersistentIrFactory,
legacyPropertyAccess: Boolean = false,
baseClassIntoMetadata: Boolean = false,
safeExternalBoolean: Boolean = false,
safeExternalBooleanDiagnostic: RuntimeDiagnostic? = null,
useGlobalSignatures: Boolean,
useStdlibCache: Boolean,
icCache: Map<String, SerializedIcData>,
@@ -256,6 +268,10 @@ private fun prepareIr(
es6mode = es6mode,
dceRuntimeDiagnostic = dceRuntimeDiagnostic,
propertyLazyInitialization = propertyLazyInitialization,
legacyPropertyAccess = legacyPropertyAccess,
baseClassIntoMetadata = baseClassIntoMetadata,
safeExternalBoolean = safeExternalBoolean,
safeExternalBooleanDiagnostic = safeExternalBooleanDiagnostic,
mapping = deserializer.mapping,
)