ghc-9.6.3: The GHC API

Safe Haskell | Safe-Inferred
Language | Haskell2010

GHC.StgToJS.Heap

Contents

- Field names
- Javascript Type literals

Synopsis

- closureType :: JExpr -> JExpr
- entryClosureType :: JExpr -> JExpr
- isObject :: JExpr -> JExpr
- isThunk :: JExpr -> JExpr
- isThunk' :: JExpr -> JExpr
- isBlackhole :: JExpr -> JExpr
- isFun :: JExpr -> JExpr
- isFun' :: JExpr -> JExpr
- isPap :: JExpr -> JExpr
- isPap' :: JExpr -> JExpr
- isCon :: JExpr -> JExpr
- isCon' :: JExpr -> JExpr
- conTag :: JExpr -> JExpr
- conTag' :: JExpr -> JExpr
- closureEntry :: JExpr -> JExpr
- closureMeta :: JExpr -> JExpr
- closureField1 :: JExpr -> JExpr
- closureField2 :: JExpr -> JExpr
- closureCC :: JExpr -> JExpr
- funArity :: JExpr -> JExpr
- funArity' :: JExpr -> JExpr
- papArity :: JExpr -> JExpr
- funOrPapArity :: JExpr -> Maybe JExpr -> JExpr
- closureEntry_ :: FastString
- closureMeta_ :: FastString
- closureCC_ :: FastString
- closureField1_ :: FastString
- closureField2_ :: FastString
- jTyObject :: JExpr

# Documentation

closureType :: JExpr -> JExpr Source #

entryClosureType :: JExpr -> JExpr Source #

isObject :: JExpr -> JExpr Source #

isThunk :: JExpr -> JExpr Source #

isThunk' :: JExpr -> JExpr Source #

isBlackhole :: JExpr -> JExpr Source #

isFun :: JExpr -> JExpr Source #

isFun' :: JExpr -> JExpr Source #

isPap :: JExpr -> JExpr Source #

isPap' :: JExpr -> JExpr Source #

isCon :: JExpr -> JExpr Source #

isCon' :: JExpr -> JExpr Source #

conTag :: JExpr -> JExpr Source #

conTag' :: JExpr -> JExpr Source #

closureEntry :: JExpr -> JExpr Source #

Get closure entry function

closureMeta :: JExpr -> JExpr Source #

Get closure metadata

closureField1 :: JExpr -> JExpr Source #

Get closure extra field 1

closureField2 :: JExpr -> JExpr Source #

Get closure extra field 2

closureCC :: JExpr -> JExpr Source #

Get closure cost-center

funArity :: JExpr -> JExpr Source #

funArity' :: JExpr -> JExpr Source #

papArity :: JExpr -> JExpr Source #

funOrPapArity Source #

Arguments

:: JExpr | heap object
-> Maybe JExpr | reference to entry, if you have one already (saves a c.f lookup twice)
-> JExpr | arity tag (tag >> 8 = registers, tag & 0xff = arguments)

# Field names

closureEntry_ :: FastString Source #

closureMeta_ :: FastString Source #

closureCC_ :: FastString Source #

closureField1_ :: FastString Source #

closureField2_ :: FastString Source #

# Javascript Type literals

jTyObject :: JExpr Source #