HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

Moduleghc-10.0.0.20260917GHC2024

GHC.StgToJS.Closure

  • 2 types
  • 14 values

Generate statements to set infotable field values for the given ClosureInfo

Depending on debug flag, it generates h$setObjInfo(...) or h$o(...). The latter form doesn't store the pretty-printed name in the closure to save space.

valuejsClosureCount :: Int
#

We use this in the RTS to determine the number of generated closures. These closures use the names cached here, so we bind them to the same number.