Sun Dec 10 03:29:44 PST 2006 Pepe Iborra <[EMAIL PROTECTED]>
* Retrieving the datacon of an arbitrary closure
This patch extends the RTS linker and the dynamic linker so that it is
possible to find out the datacon of a closure in heap at runtime:
- The RTS linker now carries a hashtable 'Address->Symbol' for data
constructors
- The Persistent Linker State in the dynamic linker is extended in a similar
way.
Finally, these two sources of information are consulted by:
> Linker.recoverDataCon :: a -> TcM Name
M! ./compiler/ghci/ByteCodeItbls.lhs -1 +1
M ./compiler/ghci/ByteCodeLink.lhs +1
M ./compiler/ghci/Linker.lhs -12 +96
M ./compiler/ghci/ObjLink.lhs -1 +16
M ./compiler/prelude/TysWiredIn.lhs +2
M ./includes/Linker.h +3
M ./rts/Linker.c -1 +65
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc