patch applied (ghc): Retrieving the datacon of an arbitrary closure
Ian Lynagh
igloo at earth.li
Sat Dec 16 12:42:25 EST 2006
Sun Dec 10 03:29:44 PST 2006 Pepe Iborra <mnislaih at gmail.com>
* 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
More information about the Cvs-ghc
mailing list