ghc-9.12.1: The GHC API
Copyright(c) The University of Glasgow 2001
LicenseBSD-style (see the file LICENSE)
MaintainerJeffrey Young <jeffrey.young@iohk.io> Luite Stegeman <luite.stegeman@iohk.io> Sylvain Henry <sylvain.henry@iohk.io> Josh Meredith <josh.meredith@iohk.io>
Stabilityexperimental Code generation of application arguments
Safe HaskellNone
LanguageGHC2021

GHC.StgToJS.Arg

Description

 
Synopsis

Documentation

genArg :: HasDebugCallStack => StgArg -> G [JStgExpr] Source #

Generate JS code for an StgArg

genIdArg :: HasDebugCallStack => Id -> G [JStgExpr] Source #

Generate a Var as JStgExpr

genIdArgI :: HasDebugCallStack => Id -> G [Ident] Source #

Generate an Id as an Ident

genIdStackArgI :: HasDebugCallStack => Id -> G [(Ident, StackSlot)] Source #

Generate IDs for stack arguments. See loadRetArgs for use case

allocConStatic :: HasDebugCallStack => Ident -> CostCentreStack -> DataCon -> [StgArg] -> G () Source #

Allocate Static Constructors

allocUnboxedConStatic :: DataCon -> [StaticArg] -> StaticArg Source #

Allocate unboxed constructors

allocateStaticList :: [StgArg] -> StgArg -> G StaticVal Source #

Allocate Static list

jsStaticArg :: StaticArg -> JStgExpr Source #

Generate JS code corresponding to a static arg

jsStaticArgs :: [StaticArg] -> JStgExpr Source #

Generate JS code corresponding to a list of static args