How detect a primitve?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How detect a primitve?

jamesl
Hi All,

Im working on the bytecodes for methods and I am wondering, how can I tell
if a compiled methods bytecode contains (starts) with a primitive, and which
primitive it is?

Rgs, James.

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: How detect a primitve?

Levente Uzonyi-2
On Wed, 4 Aug 2010, James Ladd wrote:

>
> Hi All,
>
> Im working on the bytecodes for methods and I am wondering, how can I tell
> if a compiled methods bytecode contains (starts) with a primitive, and which
> primitive it is?

See CompiledMethod >> #primitive.


Levente

>
> Rgs, James.
>

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: How detect a primitve?

jamesl
In reply to this post by jamesl
> See CompiledMethod >> #primitive.
>
>
> Levente

Thank you.

Funny how you can't see things right in front of you sometimes.
I was thinking isPrimitive.

Rgs, James.

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: How detect a primitve?

Stéphane Ducasse
Indeed isPrimitive is better
On Aug 4, 2010, at 3:37 AM, James Ladd wrote:

> > See CompiledMethod >> #primitive.
> >
> >
> > Levente
>
> Thank you.
>
> Funny how you can't see things right in front of you sometimes.
> I was thinking isPrimitive.
>
> Rgs, James.
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project