[project @ 2002-11-11 10:58:40 by simonpj]
authorsimonpj <unknown>
Mon, 11 Nov 2002 10:58:40 +0000 (10:58 +0000)
committersimonpj <unknown>
Mon, 11 Nov 2002 10:58:40 +0000 (10:58 +0000)
commitd0829767cc343e4dc164cbebcf44afb89259d770
tree344ae877f3d7cb5bf7ca8a42ad0e0219b457e556
parent0adb717549e8f6974453eb386350874be601bb03
[project @ 2002-11-11 10:58:40 by simonpj]
------------------
   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.
ghc/compiler/ghci/ByteCodeGen.lhs