Rename _closure to _static_closure, apply naming consistently.
Summary: In preparation for indirecting all references to closures, we rename _closure to _static_closure to ensure any old code will get an undefined symbol error. In order to reference a closure foobar_closure (which is now undefined), you should instead use STATIC_CLOSURE(foobar). For convenience, a number of these old identifiers are macro'd. Across C-- and C (Windows and otherwise), there were differing conventions on whether or not foobar_closure or &foobar_closure was the address of the closure. Now, all foobar_closure references are addresses, and no & is necessary. CHARLIKE/INTLIKE were not changed, simply alpha-renamed. Part of remove HEAP_ALLOCED patch set (#8199) Depends on D265 Signed-off-by:Edward Z. Yang <ezyang@mit.edu> Test Plan: validate Reviewers: simonmar, austin Subscribers: simonmar, ezyang, carter, thomie Differential Revision: https://phabricator.haskell.org/D267 GHC Trac Issues: #8199
Showing
- compiler/cmm/CLabel.hs 2 additions, 2 deletionscompiler/cmm/CLabel.hs
- compiler/deSugar/DsForeign.lhs 3 additions, 3 deletionscompiler/deSugar/DsForeign.lhs
- compiler/ghci/ByteCodeLink.lhs 2 additions, 2 deletionscompiler/ghci/ByteCodeLink.lhs
- compiler/main/DriverPipeline.hs 2 additions, 2 deletionscompiler/main/DriverPipeline.hs
- driver/utils/dynwrapper.c 1 addition, 1 deletiondriver/utils/dynwrapper.c
- ghc/GhciMonad.hs 3 additions, 3 deletionsghc/GhciMonad.hs
- includes/Cmm.h 1 addition, 0 deletionsincludes/Cmm.h
- includes/Rts.h 1 addition, 0 deletionsincludes/Rts.h
- includes/RtsAPI.h 6 additions, 6 deletionsincludes/RtsAPI.h
- includes/rts/StaticClosures.h 34 additions, 0 deletionsincludes/rts/StaticClosures.h
- includes/rts/storage/ClosureMacros.h 3 additions, 2 deletionsincludes/rts/storage/ClosureMacros.h
- includes/rts/storage/TSO.h 1 addition, 1 deletionincludes/rts/storage/TSO.h
- includes/stg/MiscClosures.h 15 additions, 15 deletionsincludes/stg/MiscClosures.h
- libraries/integer-gmp/cbits/gmp-wrappers.cmm 2 additions, 2 deletionslibraries/integer-gmp/cbits/gmp-wrappers.cmm
- rts/Exception.cmm 3 additions, 3 deletionsrts/Exception.cmm
- rts/Interpreter.c 1 addition, 1 deletionrts/Interpreter.c
- rts/Linker.c 2 additions, 2 deletionsrts/Linker.c
- rts/Prelude.h 45 additions, 41 deletionsrts/Prelude.h
- rts/PrimOps.cmm 4 additions, 4 deletionsrts/PrimOps.cmm
- rts/RaiseAsync.c 2 additions, 2 deletionsrts/RaiseAsync.c
Loading
Please register or sign in to comment