KT-52178: Argument propagation into IR backend & lowering dump action
This commit is contained in:
committed by
Space Team
parent
5026778cd1
commit
55bfd3efcb
@@ -340,7 +340,7 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
|
|||||||
if (arguments.wasm) {
|
if (arguments.wasm) {
|
||||||
val (allModules, backendContext) = compileToLoweredIr(
|
val (allModules, backendContext) = compileToLoweredIr(
|
||||||
depsDescriptors = module,
|
depsDescriptors = module,
|
||||||
phaseConfig = PhaseConfig(wasmPhases),
|
phaseConfig = createPhaseConfig(wasmPhases, arguments, messageCollector),
|
||||||
irFactory = IrFactoryImpl,
|
irFactory = IrFactoryImpl,
|
||||||
exportedDeclarations = setOf(FqName("main")),
|
exportedDeclarations = setOf(FqName("main")),
|
||||||
propertyLazyInitialization = arguments.irPropertyLazyInitialization,
|
propertyLazyInitialization = arguments.irPropertyLazyInitialization,
|
||||||
|
|||||||
+2
-1
@@ -742,5 +742,6 @@ val wasmPhases = SameTypeNamedCompilerPhase(
|
|||||||
virtualDispatchReceiverExtractionPhase then
|
virtualDispatchReceiverExtractionPhase then
|
||||||
staticMembersLoweringPhase then
|
staticMembersLoweringPhase then
|
||||||
inlineObjectsWithPureInitializationLoweringPhase then
|
inlineObjectsWithPureInitializationLoweringPhase then
|
||||||
validateIrAfterLowering
|
validateIrAfterLowering,
|
||||||
|
actions = setOf(defaultDumper.toMultiModuleAction())
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user