HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleghc-10.0.0.20260917GHC2024

GHC.StgToJS.Closure

Synopsis

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.