ghc-9.12.1: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.StgToJS.Heap

Synopsis

Documentation

infoClosureType :: JStgExpr -> JStgExpr Source #

Closure type from infotable

infoFunArity :: JStgExpr -> JStgExpr Source #

Function arity from infotable

closureInfo :: JStgExpr -> JStgExpr Source #

Get closure infotable

closureMeta :: JStgExpr -> JStgExpr Source #

Get closure metadata

closureField1 :: JStgExpr -> JStgExpr Source #

Get closure extra field 1

closureField2 :: JStgExpr -> JStgExpr Source #

Get closure extra field 2

closureCC :: JStgExpr -> JStgExpr Source #

Get closure cost-center

funArity :: JStgExpr -> JStgExpr Source #

Number of arguments (arity & 0xff = arguments, arity >> 8 = number of registers)

funOrPapArity Source #

Arguments

:: JStgExpr

heap object

-> Maybe JStgExpr

reference to infotable, if you have one already (saves a c.f lookup twice)

-> JStgExpr

arity tag (tag >> 8 = registers, tag & 0xff = arguments)

Field names

closureInfo_ :: FastString Source #

Closure infotable field name

closureMeta_ :: FastString Source #

Closure meta field name

closureCC_ :: FastString Source #

Closure cost-center field name

closureField1_ :: FastString Source #

Closure first payload field name

closureField2_ :: FastString Source #

Closure second payload field name

Javascript Type literals