[Vm-dev] primitivePerform (prim 83) | primitivePerformInSuperclass (100)

Eliot Miranda eliot.miranda at gmail.com
Mon Dec 12 16:53:34 UTC 2011


On Mon, Dec 12, 2011 at 12:53 AM, Stefan Marr <squeak at stefan-marr.de> wrote:

>
> Hi Dave,
> Hi Eliot:
>
> On 12 Dec 2011, at 02:42, David T. Lewis wrote:
>
> > I think you are missing some arguments for the primitive in your
> > #performSuper methods.
>
> Thanks Dave, indeed. Was certainly to late for me yesterday.
> I forget the class, in which the lookup is supposed to be started.
>
> Eliot, well, there was another argument, which was probably interpreted as
> the lookup class but was just a SmallInteger instead. Guess that was
> causing the crash.
>

If so, that's a bug.  The prim should check.  I'll fix this.  So to
reproduce I supply a SmallInteger as the lookup class?  But the folloiwng
doesn't crash my VM:

nil perform: #yourself withArguments: #() inSuperclass: 0

So I still need to know how to reproduce this on Cog.


> From the RoarVM interpreter I understand that the lookup class is not
> crosschecked for being a class. I think it did work on the interpreter for
> me, because my patched DNU handler is 'a bit to robust', and does not
> exactly what it is supposed to do.
>
>
> Thanks
> Stefan
>
> --
> Stefan Marr
> Software Languages Lab
> Vrije Universiteit Brussel
> Pleinlaan 2 / B-1050 Brussels / Belgium
> http://soft.vub.ac.be/~smarr
> Phone: +32 2 629 2974
> Fax:   +32 2 629 3525
>
-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20111212/e2b35afe/attachment.htm


More information about the Vm-dev mailing list