[JS IR BE] Enable unconditional validation
This commit is contained in:
@@ -66,6 +66,18 @@ private fun makeCustomJsModulePhase(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
private val validateIrBeforeLowering = makeCustomJsModulePhase(
|
||||||
|
{ context, module -> validationCallback(context, module) },
|
||||||
|
name = "ValidateIrBeforeLowering",
|
||||||
|
description = "Validate IR before lowering"
|
||||||
|
)
|
||||||
|
|
||||||
|
private val validateIrAfterLowering = makeCustomJsModulePhase(
|
||||||
|
{ context, module -> validationCallback(context, module) },
|
||||||
|
name = "ValidateIrAfterLowering",
|
||||||
|
description = "Validate IR after lowering"
|
||||||
|
)
|
||||||
|
|
||||||
private val moveBodilessDeclarationsToSeparatePlacePhase = makeCustomJsModulePhase(
|
private val moveBodilessDeclarationsToSeparatePlacePhase = makeCustomJsModulePhase(
|
||||||
{ context, module ->
|
{ context, module ->
|
||||||
moveBodilessDeclarationsToSeparatePlace(context, module)
|
moveBodilessDeclarationsToSeparatePlace(context, module)
|
||||||
@@ -357,7 +369,8 @@ private val staticMembersLoweringPhase = makeJsModulePhase(
|
|||||||
val jsPhases = namedIrModulePhase(
|
val jsPhases = namedIrModulePhase(
|
||||||
name = "IrModuleLowering",
|
name = "IrModuleLowering",
|
||||||
description = "IR module lowering",
|
description = "IR module lowering",
|
||||||
lower = testGenerationPhase then
|
lower = validateIrBeforeLowering then
|
||||||
|
testGenerationPhase then
|
||||||
expectDeclarationsRemovingPhase then
|
expectDeclarationsRemovingPhase then
|
||||||
arrayConstructorPhase then
|
arrayConstructorPhase then
|
||||||
functionInliningPhase then
|
functionInliningPhase then
|
||||||
@@ -399,5 +412,6 @@ val jsPhases = namedIrModulePhase(
|
|||||||
primitiveCompanionLoweringPhase then
|
primitiveCompanionLoweringPhase then
|
||||||
constLoweringPhase then
|
constLoweringPhase then
|
||||||
callsLoweringPhase then
|
callsLoweringPhase then
|
||||||
staticMembersLoweringPhase
|
staticMembersLoweringPhase then
|
||||||
|
validateIrAfterLowering
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user