Rename _closure to _static_closure, apply naming consistently.
authorEdward Z. Yang <ezyang@mit.edu>
Mon, 26 Aug 2013 22:23:15 +0000 (15:23 -0700)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Thu, 2 Oct 2014 05:26:39 +0000 (22:26 -0700)
commit35672072b4091d6f0031417bc160c568f22d0469
tree243925bae6f8869cca1df8595c17c0467b9d5998
parent178eb9060f369b216f3f401196e28eab4af5624d
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
30 files changed:
compiler/cmm/CLabel.hs
compiler/deSugar/DsForeign.lhs
compiler/ghci/ByteCodeLink.lhs
compiler/main/DriverPipeline.hs
driver/utils/dynwrapper.c
ghc/GhciMonad.hs
includes/Cmm.h
includes/Rts.h
includes/RtsAPI.h
includes/rts/StaticClosures.h [new file with mode: 0644]
includes/rts/storage/ClosureMacros.h
includes/rts/storage/TSO.h
includes/stg/MiscClosures.h
libraries/integer-gmp/cbits/gmp-wrappers.cmm
rts/Exception.cmm
rts/Interpreter.c
rts/Linker.c
rts/Prelude.h
rts/PrimOps.cmm
rts/RaiseAsync.c
rts/RetainerProfile.c
rts/STM.c
rts/STM.h
rts/StgMiscClosures.cmm
rts/Weak.c
rts/package.conf.in
rts/posix/Signals.c
rts/sm/Storage.c
rts/win32/libHSbase.def
testsuite/tests/rts/rdynamic.hs