[commit: ghc] master: Implement getSizeofMutableByteArrayOp primop (9e8562a)
git at git.haskell.org
git at git.haskell.org
Fri Aug 21 14:24:55 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/9e8562ae02701270e2c1dfcee3279d862dc5b7b6/ghc
>---------------------------------------------------------------
commit 9e8562ae02701270e2c1dfcee3279d862dc5b7b6
Author: Ben Gamari <bgamari.foss at gmail.com>
Date: Fri Aug 21 10:37:39 2015 +0200
Implement getSizeofMutableByteArrayOp primop
Now since ByteArrays are mutable we need to be more explicit about when
the size is queried.
Test Plan: Add testcase and validate
Reviewers: goldfire, hvr, austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1139
GHC Trac Issues: #9447
>---------------------------------------------------------------
9e8562ae02701270e2c1dfcee3279d862dc5b7b6
compiler/codeGen/StgCmmPrim.hs | 5 +++
compiler/main/BreakArray.hs | 12 ++++-
compiler/prelude/primops.txt.pp | 8 +++-
libraries/integer-gmp/src/GHC/Integer/Type.hs | 63 +++++++++++++++------------
4 files changed, 58 insertions(+), 30 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 9e8562ae02701270e2c1dfcee3279d862dc5b7b6
More information about the ghc-commits
mailing list