On Sat, Dec 12, 2009 at 12:26 AM, William Hesse <[email protected]> wrote:

> Ok, going well, but the end of an initialization block wants the receiver
> of the initialization block
> on the stack, so it can be put back in fast mode.  Could the end of the
> initialization block be an explicit
> node, that puts the receiver on the stack?
>

Myabe I misunderstand, but I don't think it should.  First, it's too much of
an implementation detail to expose in the AST.  Second, we can't evaluate
the receiver expression more times than the programmer wrote in the source
code, in case it has side effects.

Easiest seems to be to leave a spot on the frame below the reference (before
the reference is loaded) for end of initialization block.  Duplicate the
receiver there sometime before calling SetValue.

-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to