ObjectLowering

This commit is contained in:
Anton Bannykh
2019-12-25 13:10:30 +03:00
committed by Anton Bannykh
parent ce625075f6
commit 76ff30b86e
4 changed files with 64 additions and 53 deletions
@@ -332,14 +332,14 @@ private val builtInsLoweringPhase = makeWasmModulePhase(
description = "Lower IR buildins"
)
private val objectDeclarationLoweringPhase = makeCustomWasmModulePhase(
{ context, module -> ObjectUsageLowering(context, context.objectToGetInstanceFunction).lower(module) },
private val objectDeclarationLoweringPhase = makeWasmModulePhase(
::ObjectUsageLowering,
name = "ObjectDeclarationLowering",
description = "Create lazy object instance generator functions"
)
private val objectUsageLoweringPhase = makeCustomWasmModulePhase(
{ context, module -> ObjectUsageLowering(context, context.objectToGetInstanceFunction).lower(module) },
private val objectUsageLoweringPhase = makeWasmModulePhase(
::ObjectUsageLowering,
name = "ObjectUsageLowering",
description = "Transform IrGetObjectValue into instance generator call"
)