ghc-9.6.0.20230210: The GHC API
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.StgToJS.Literal

Synopsis

Documentation

genLit :: HasDebugCallStack => Literal -> G [JExpr] Source #

Generate JS expressions for a Literal

Literals represented with 2 values: * Addr# (Null and Strings): array and offset * 64-bit values: high 32-bit, low 32-bit * labels: call to h$mkFunctionPtr and 0, or function name and 0

genStaticLit :: Literal -> G [StaticLit] Source #

generate a literal for the static init tables