[Newcompiler] Finding enough bytecodes for closures.
Klaus D. Witzel
klaus.witzel at cobss.com
Mon Apr 30 07:22:38 UTC 2007
Hi Bryce,
as part of your investigation, did you observe any chance to reduce the
burden of having an instance of BlockClosure *and* of ClosureEnvironment,
that'd be interesting.
Cheers
Klaus
On Sun, 29 Apr 2007 23:45:18 +0200, you wrote:
>
> There's 2 unused bytecodes and some holes in the double extended
> do anything bytecode. That's enough for most designs. I'm guessing
> that a good implementation will involve 4 bytecodes. The holes
> in the do anything bytecodes is because only 2 of the 8 subtypes
> use the 5 bits of argument count from the second byte with the
> sub-type.
>
> We'd need to check before borrowing the argument bits that they
> are always zero in the image when they're not needed.
>
> Bryce
More information about the Newcompiler
mailing list