Safe Haskell | None |
---|
- data StgWord
- fromStgWord :: StgWord -> Integer
- toStgWord :: DynFlags -> Integer -> StgWord
- data StgHalfWord
- fromStgHalfWord :: StgHalfWord -> Integer
- toStgHalfWord :: DynFlags -> Integer -> StgHalfWord
- hALF_WORD_SIZE :: DynFlags -> ByteOff
- hALF_WORD_SIZE_IN_BITS :: DynFlags -> Int
- type WordOff = Int
- type ByteOff = Int
- roundUpToWords :: DynFlags -> ByteOff -> ByteOff
- data UArrayStgWord i
- listArray :: Ix i => (i, i) -> [StgWord] -> UArrayStgWord i
- toByteArray :: UArrayStgWord i -> ByteArray#
- data SMRep
- type IsStatic = Bool
- data ClosureTypeInfo
- = Constr ConstrTag ConstrDescription
- | Fun FunArity ArgDescr
- | Thunk
- | ThunkSelector SelectorOffset
- | BlackHole
- | IndStatic
- data ArgDescr
- type Liveness = [Bool]
- type ConstrDescription = [Word8]
- mkHeapRep :: DynFlags -> IsStatic -> WordOff -> WordOff -> ClosureTypeInfo -> SMRep
- blackHoleRep :: SMRep
- indStaticRep :: SMRep
- mkStackRep :: [Bool] -> SMRep
- mkRTSRep :: Int -> SMRep -> SMRep
- isStaticRep :: SMRep -> IsStatic
- isConRep :: SMRep -> Bool
- isThunkRep :: SMRep -> Bool
- isFunRep :: SMRep -> Bool
- isStaticNoCafCon :: SMRep -> Bool
- isStackRep :: SMRep -> Bool
- heapClosureSize :: DynFlags -> SMRep -> WordOff
- fixedHdrSize :: DynFlags -> WordOff
- arrWordsHdrSize :: DynFlags -> ByteOff
- arrPtrsHdrSize :: DynFlags -> ByteOff
- profHdrSize :: DynFlags -> WordOff
- thunkHdrSize :: DynFlags -> WordOff
- nonHdrSize :: SMRep -> WordOff
- rtsClosureType :: SMRep -> Int
- rET_SMALL :: Int
- rET_BIG :: Int
- aRG_GEN :: Int
- aRG_GEN_BIG :: Int
- pprWord8String :: [Word8] -> SDoc
- stringToWord8s :: String -> [Word8]
Words and bytes
fromStgWord :: StgWord -> IntegerSource
toStgHalfWord :: DynFlags -> Integer -> StgHalfWordSource
roundUpToWords :: DynFlags -> ByteOff -> ByteOffSource
Immutable arrays of StgWords
data UArrayStgWord i Source
listArray :: Ix i => (i, i) -> [StgWord] -> UArrayStgWord iSource
toByteArray :: UArrayStgWord i -> ByteArray#Source
Closure repesentation
A description of the layout of a closure. Corresponds directly to the closure types in includesrtsstorage/ClosureTypes.h.
True = This is a static closure. Affects how we garbage-collect it. Static closure have an extra static link field at the end.
data ClosureTypeInfo Source
Constr ConstrTag ConstrDescription | |
Fun FunArity ArgDescr | |
Thunk | |
ThunkSelector SelectorOffset | |
BlackHole | |
IndStatic |
type ConstrDescription = [Word8]Source
Construction
mkStackRep :: [Bool] -> SMRepSource
Predicates
isStaticRep :: SMRep -> IsStaticSource
isThunkRep :: SMRep -> BoolSource
isStaticNoCafCon :: SMRep -> BoolSource
isStackRep :: SMRep -> BoolSource
Size-related things
heapClosureSize :: DynFlags -> SMRep -> WordOffSource
fixedHdrSize :: DynFlags -> WordOffSource
Size of a closure header (StgHeader in includesrtsstorage/Closures.h)
profHdrSize :: DynFlags -> WordOffSource
Size of the profiling part of a closure header (StgProfHeader in includesrtsstorage/Closures.h)
nonHdrSize :: SMRep -> WordOffSource
RTS closure types
rtsClosureType :: SMRep -> IntSource
Derives the RTS closure type from an SMRep
Operations over [Word8] strings that don't belong here
pprWord8String :: [Word8] -> SDocSource
stringToWord8s :: String -> [Word8]Source