Use a primop for getting the fields of the AP_STACK rather than an FFI call
authorSimon Marlow <simonmar@microsoft.com>
Thu, 3 May 2007 15:19:41 +0000 (15:19 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 3 May 2007 15:19:41 +0000 (15:19 +0000)
commitefb02b428941021771c9b9b955bba3ec0214dbaf
tree184324c0ea010c2d1afc5f7cb94b051b31d31ab0
parent10406dfbd1a90e0ca813cc2809719263642d9a97
Use a primop for getting the fields of the AP_STACK rather than an FFI call
This means we can avoid some StablePtrs, and also catch cases where
the AP_STACK has been evaluated (this can happen with :history, see
the hist001 test).
compiler/main/InteractiveEval.hs
compiler/prelude/primops.txt.pp
rts/Interpreter.c
rts/PrimOps.cmm