HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Moduleghc-9.14.1GHC2021

GHC.StgToJS.Closure

  • 2 types
  • 14 values
  • Packageghc-9.14.1
  • Exports16
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceClosure.hs

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.