ghc-9.10.1: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.StgToJS.Closure

Synopsis

Documentation

closure Source #

Arguments

:: ClosureInfo

object being info'd see ciVar

-> JSM JStgStat

rhs

-> JSM JStgStat 

Special case of closures that do not need to generate any fresh names

data Closure Source #

Used to pass arguments to newClosure with some safety

data CopyCC Source #

Constructors

CopyCC 
DontCopyCC 
 

jsClosureCount :: Int Source #

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.