ghc-9.10.1: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.StgToJS.Regs

Synopsis

Documentation

data StgReg Source #

General purpose "registers"

The JS backend arbitrarily supports 128 registers

Instances

Instances details
ToJExpr StgReg Source # 
Instance details

Defined in GHC.StgToJS.Regs

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

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
ToJExpr Special Source # 
Instance details

Defined in GHC.StgToJS.Regs

Show 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 :: [JStgExpr] Source #

List of registers, starting from R1 as JStgExpr

jsRegsFromR2 :: [JStgExpr] 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
ToJExpr StgRet Source # 
Instance details

Defined in GHC.StgToJS.Regs

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

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

register :: StgReg -> JStgExpr Source #

Given a register, return the JS syntax object representing that register

foreignRegister :: StgRet -> JStgExpr Source #

Given a register, return the JS syntax object representing that register