HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Moduleghc-9.14.1GHC2021

GHC.StgToJS.Closure

Synopsis
  • 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.

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.