[Vm-dev] Re: [Vm-beginners] About Primitives

Mariano Martinez Peck marianopeck at gmail.com
Sat May 26 08:38:25 UTC 2012


On Sat, May 26, 2012 at 3:21 AM, Sean P. DeNigris <sean at clipperadams.com>wrote:

>
>
> Mariano Martinez Peck wrote
> >
> > yes it receieves! two arguments indeed
> >
> plus self is passed implicitly first, right?
>
>
You see? we start to help us each other :)
yes, the receiver is always put in the stack "implicitly"


>
> Mariano Martinez Peck wrote
> >
> > if you see #initializePrimitiveTable you see the number of this primitive
> > is 249. So if you browse your iamge, you find:
> >
> How did you "browse the image" for the primitive? I ended up searching
> sources for "<primitive: 249>". Is there a better/faster way?
>
>
That's one slow possibily and the hacky and fast one is: CompiledMethod
allInstances select: [:each | each primitive = 249]


>
> Mariano Martinez Peck wrote
> >
> > so popping 2 means you will let "self" in the top, so it will actually be
> > the return value.
> > the last time I was hacking in this side of the moon was one year
> ago...so
> > some validation from someone else would be nice :)
> >
> That's what it looked like to me.
>

excellent


>
> --
> View this message in context:
> http://forum.world.st/About-Primitives-tp4631848p4631889.html
> Sent from the Squeak VM mailing list archive at Nabble.com.
>



-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20120526/f87277c9/attachment.htm


More information about the Vm-dev mailing list