summaryrefslogtreecommitdiff
path: root/includes/Cmm.h
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2008-04-07 21:24:37 +0000
committerSimon Marlow <simonmar@microsoft.com>2008-04-07 21:24:37 +0000
commitd7fcc5eb8e926038240078ebfccea05f4f3eb1da (patch)
tree727359feb87c2c86cbbc8dfcc1814744b08c4c2d /includes/Cmm.h
parentb95ca692ddc47376b114dee0cf93871661a53358 (diff)
downloadhaskell-d7fcc5eb8e926038240078ebfccea05f4f3eb1da.tar.gz
update a comment
Diffstat (limited to 'includes/Cmm.h')
-rw-r--r--includes/Cmm.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/includes/Cmm.h b/includes/Cmm.h
index d47e6fdaa6..4cfb432811 100644
--- a/includes/Cmm.h
+++ b/includes/Cmm.h
@@ -102,18 +102,8 @@
#endif
/*
- * The RTS must UNTAG a pointer before dereferencing it.
- * The use of UNTAG follows the following rules of thumb:
- *
- * - Any pointer might be tagged.
- * - Except the pointers that are passed in R1 to RTS functions.
- * - R1 is also untagged when entering constructor code.
- *
- * TODO:
- *
- * - Remove redundancies of tagging and untagging in code generation.
- * - Optimize getTag or dataToTag# ?
- *
+ * The RTS must sometimes UNTAG a pointer before dereferencing it.
+ * See the wiki page Commentary/Rts/HaskellExecution/PointerTagging
*/
#define TAG_MASK ((1 << TAG_BITS) - 1)
#define UNTAG(p) (p & ~TAG_MASK)