[commit: ghc] master: ByteCodeGen: use byte indexing for BCenv (dac4b9d)

git at git.haskell.org git at git.haskell.org
Fri Jul 28 16:37:12 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/dac4b9d3cdca83c99d5d894d2743cc0bbca450ac/ghc

>---------------------------------------------------------------

commit dac4b9d3cdca83c99d5d894d2743cc0bbca450ac
Author: Michal Terepeta <michal.terepeta at gmail.com>
Date:   Fri Jul 28 11:47:28 2017 -0400

    ByteCodeGen: use byte indexing for BCenv
    
    This is another change needed for #13825 (also based on D38 by Simon
    Marlow).
    
    With the change, we count the stack depth in bytes (instead of words).
    We also introduce some `newtype`s to help with the change.
    
    Note that this only changes how `ByteCodeGen` works and shouldn't
    affect the generated bytecode.
    
    Signed-off-by: Michal Terepeta <michal.terepeta at gmail.com>
    
    Test Plan: ./validate
    
    Reviewers: bgamari, simonmar, austin, hvr
    
    Reviewed By: bgamari, simonmar
    
    Subscribers: rwbarton, thomie
    
    GHC Trac Issues: #13825
    
    Differential Revision: https://phabricator.haskell.org/D3746


>---------------------------------------------------------------

dac4b9d3cdca83c99d5d894d2743cc0bbca450ac
 compiler/ghci/ByteCodeGen.hs | 467 ++++++++++++++++++++++++++-----------------
 1 file changed, 283 insertions(+), 184 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 dac4b9d3cdca83c99d5d894d2743cc0bbca450ac


More information about the ghc-commits mailing list