ghc-9.8.0.20230929: The GHC API
Safe HaskellNone
LanguageHaskell2010

GHC.StgToJS.Regs

Synopsis

Documentation

data StgReg Source #

General purpose "registers"

The JS backend arbitrarily supports 128 registers

Instances

Instances details
Bounded StgReg Source # 
Instance details

Defined in GHC.StgToJS.Regs

Enum StgReg Source # 
Instance details

Defined in GHC.StgToJS.Regs

Ix StgReg Source # 
Instance details

Defined in GHC.StgToJS.Regs

Show StgReg Source # 
Instance details

Defined in GHC.StgToJS.Regs

ToJExpr StgReg Source # 
Instance details

Defined in GHC.StgToJS.Regs

Eq StgReg Source # 
Instance details

Defined in GHC.StgToJS.Regs

Methods

(==) :: StgReg -> StgReg -> Bool #

(/=) :: StgReg -> StgReg -> Bool #

Ord StgReg Source # 
Instance details

Defined in GHC.StgToJS.Regs

data Special Source #

Stack registers

Constructors

Stack 
Sp 

Instances

Instances details
Show Special Source # 
Instance details

Defined in GHC.StgToJS.Regs

ToJExpr Special Source # 
Instance details

Defined in GHC.StgToJS.Regs

Eq Special Source # 
Instance details

Defined in GHC.StgToJS.Regs

Methods

(==) :: Special -> Special -> Bool #

(/=) :: Special -> Special -> Bool #

regsFromR1 :: [StgReg] Source #

List of registers, starting from R1

regsFromR2 :: [StgReg] Source #

List of registers, starting from R2

jsRegsFromR1 :: [JExpr] Source #

List of registers, starting from R1 as JExpr

jsRegsFromR2 :: [JExpr] Source #

List of registers, starting from R2 as JExpr

data StgRet Source #

Return registers

Extra results from foreign calls can be stored here (while first result is directly returned)

Constructors

Ret1 
Ret2 
Ret3 
Ret4 
Ret5 
Ret6 
Ret7 
Ret8 
Ret9 
Ret10 

Instances

Instances details
Bounded StgRet Source # 
Instance details

Defined in GHC.StgToJS.Regs

Enum StgRet Source # 
Instance details

Defined in GHC.StgToJS.Regs

Ix StgRet Source # 
Instance details

Defined in GHC.StgToJS.Regs

Show StgRet Source # 
Instance details

Defined in GHC.StgToJS.Regs

ToJExpr StgRet Source # 
Instance details

Defined in GHC.StgToJS.Regs

Eq StgRet Source # 
Instance details

Defined in GHC.StgToJS.Regs

Methods

(==) :: StgRet -> StgRet -> Bool #

(/=) :: StgRet -> StgRet -> Bool #

Ord StgRet Source # 
Instance details

Defined in GHC.StgToJS.Regs