Refactor inline array allocation
authorSimon Marlow <marlowsd@gmail.com>
Mon, 10 Mar 2014 21:43:15 +0000 (21:43 +0000)
committerJohan Tibell <johan.tibell@gmail.com>
Tue, 11 Mar 2014 19:01:54 +0000 (20:01 +0100)
commitb684f27ec7b3538ffd9401de70ef5685b8b71978
tree2c5f095d4bff3b51a328231c7ce3fb367113e7df
parenta70e7b4762c75812254f7781bcd48139c4ec40dd
Refactor inline array allocation

- Move array representation knowledge into SMRep

- Separate out low-level heap-object allocation so that we can reuse
  it from doNewArrayOp

- remove card-table initialisation, we can safely ignore the card
  table for newly allocated arrays.
compiler/cmm/SMRep.lhs
compiler/codeGen/StgCmmHeap.hs
compiler/codeGen/StgCmmPrim.hs
compiler/codeGen/StgCmmProf.hs
compiler/codeGen/StgCmmTicky.hs