Two new prim ops to access the Info Table and Payload of a closure:
authorPepe Iborra <mnislaih@gmail.com>
Sat, 9 Dec 2006 17:38:23 +0000 (17:38 +0000)
committerPepe Iborra <mnislaih@gmail.com>
Sat, 9 Dec 2006 17:38:23 +0000 (17:38 +0000)
commitd308d910efa702ebf5a2f76db628d690fcf6fa51
treeca0663367e506cc1cb68cd7a44c7e8500bb6a131
parented12b7043fa98928f75c289a756fbcef546315f8
Two new prim ops to access the Info Table and Payload of a closure:

- infoPtr# :: a -> Addr#
- closurePayload# :: a -> (# Array b, ByteArr# #)

These prim ops provide the magic behind the ':print' command
compiler/prelude/primops.txt.pp
includes/StgMiscClosures.h
rts/PrimOps.cmm