Add support for StaticPointers in GHCi
Here we add support to GHCi for StaticPointers. This process begins by adding remote GHCi messages for adding entries to the static pointer table. We then collect binders needing SPT entries after linking and send the interpreter a message adding entries with the appropriate fingerprints. Test Plan: `make test TEST=StaticPtr` Reviewers: facundominguez, mboes, simonpj, simonmar, goldfire, austin, hvr, erikd Reviewed By: simonpj, simonmar Subscribers: RyanGlScott, simonpj, thomie Differential Revision: https://phabricator.haskell.org/D2504 GHC Trac Issues: #12356
Showing
- compiler/ghci/GHCi.hsc 7 additions, 0 deletionscompiler/ghci/GHCi.hsc
- compiler/main/DriverPipeline.hs 3 additions, 2 deletionscompiler/main/DriverPipeline.hs
- compiler/main/GHC.hs 15 additions, 2 deletionscompiler/main/GHC.hs
- compiler/main/GhcMake.hs 12 additions, 0 deletionscompiler/main/GhcMake.hs
- compiler/main/HscMain.hs 20 additions, 4 deletionscompiler/main/HscMain.hs
- compiler/main/HscTypes.hs 23 additions, 7 deletionscompiler/main/HscTypes.hs
- compiler/main/InteractiveEval.hs 1 addition, 1 deletioncompiler/main/InteractiveEval.hs
- compiler/main/StaticPtrTable.hs 23 additions, 15 deletionscompiler/main/StaticPtrTable.hs
- compiler/main/TidyPgm.hs 14 additions, 4 deletionscompiler/main/TidyPgm.hs
- compiler/rename/RnExpr.hs 0 additions, 9 deletionscompiler/rename/RnExpr.hs
- docs/users_guide/8.2.1-notes.rst 3 additions, 0 deletionsdocs/users_guide/8.2.1-notes.rst
- docs/users_guide/glasgow_exts.rst 7 additions, 0 deletionsdocs/users_guide/glasgow_exts.rst
- includes/rts/StaticPtrTable.h 8 additions, 0 deletionsincludes/rts/StaticPtrTable.h
- libraries/ghci/GHCi/Message.hs 7 additions, 1 deletionlibraries/ghci/GHCi/Message.hs
- libraries/ghci/GHCi/Run.hs 2 additions, 0 deletionslibraries/ghci/GHCi/Run.hs
- libraries/ghci/GHCi/StaticPtrTable.hs 24 additions, 0 deletionslibraries/ghci/GHCi/StaticPtrTable.hs
- libraries/ghci/ghci.cabal.in 1 addition, 0 deletionslibraries/ghci/ghci.cabal.in
- rts/RtsSymbols.c 1 addition, 0 deletionsrts/RtsSymbols.c
- rts/StaticPtrTable.c 8 additions, 4 deletionsrts/StaticPtrTable.c
- testsuite/tests/ghci/scripts/StaticPtr.hs 20 additions, 0 deletionstestsuite/tests/ghci/scripts/StaticPtr.hs
Loading
Please register or sign in to comment