simonpj 2002/11/11 02:58:41 PST
Modified files:
ghc/compiler/ghci ByteCodeGen.lhs
Log:
------------------
Improve byte-code compilation of unboxed
tuple returns
------------------
The previous byte-code for returning unboxed tuples was just wrong. It's
a special case for the situation where we return (# s, x #), where s is
a state token, so we can just return the single result 'x' on top of the
stack. Previously we generated an ENTER at the end, which is plain wrong.
We should RETURN.
It still doesn't work, for other tiresome reasons...but rather than fix it
we'll wait for eval-apply. Meanwhile it's less wrong than before.
Revision Changes Path
1.83 +14 -7 fptools/ghc/compiler/ghci/ByteCodeGen.lhs
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc
- cvs commit: fptools/ghc/compiler/ghci ByteCodeGen.lhs Simon Marlow
- cvs commit: fptools/ghc/compiler/ghci ByteCodeGen.... Simon Peyton Jones
- cvs commit: fptools/ghc/compiler/ghci ByteCodeGen.... Simon Marlow
- cvs commit: fptools/ghc/compiler/ghci ByteCodeGen.... Simon Peyton Jones
- cvs commit: fptools/ghc/compiler/ghci ByteCodeGen.... Simon Peyton Jones
- cvs commit: fptools/ghc/compiler/ghci ByteCodeGen.... Simon Marlow
- cvs commit: fptools/ghc/compiler/ghci ByteCodeGen.... Simon Peyton Jones
- cvs commit: fptools/ghc/compiler/ghci ByteCodeGen.... Simon Marlow
- cvs commit: fptools/ghc/compiler/ghci ByteCodeGen.... ross
- cvs commit: fptools/ghc/compiler/ghci ByteCodeGen.... Simon Marlow
- cvs commit: fptools/ghc/compiler/ghci ByteCodeGen.... Simon Marlow
- RE: cvs commit: fptools/ghc/compiler/ghci ByteCode... Simon Marlow
