summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorPepe Iborra <mnislaih@gmail.com>2006-12-09 17:38:23 +0000
committerPepe Iborra <mnislaih@gmail.com>2006-12-09 17:38:23 +0000
commitd308d910efa702ebf5a2f76db628d690fcf6fa51 (patch)
treeca0663367e506cc1cb68cd7a44c7e8500bb6a131 /includes
parented12b7043fa98928f75c289a756fbcef546315f8 (diff)
downloadhaskell-d308d910efa702ebf5a2f76db628d690fcf6fa51.tar.gz
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
Diffstat (limited to 'includes')
-rw-r--r--includes/StgMiscClosures.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/StgMiscClosures.h b/includes/StgMiscClosures.h
index 4f638ea9ce..d98956167a 100644
--- a/includes/StgMiscClosures.h
+++ b/includes/StgMiscClosures.h
@@ -614,4 +614,7 @@ RTS_FUN(readTVarzh_fast);
RTS_FUN(writeTVarzh_fast);
RTS_FUN(checkzh_fast);
+RTS_FUN(infoPtrzh_fast);
+RTS_FUN(closurePayloadzh_fast);
+
#endif /* STGMISCCLOSURES_H */