Object>>withArgs:executeMethod:

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

Object>>withArgs:executeMethod:

Igor Stasenko
Its unclear, is this primitive <primitive: 188> works?
In what VM version it can be found?

I fear that its not supported, because of:

Object>>with: arg1 executeMethod: compiledMethod
        "Execute compiledMethod against the receiver and arg1"

        "<primitive: 189>" "uncomment once prim 189 is in VM"
        ^ self withArgs: {arg1} executeMethod: compiledMethod

--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

Re: Object>>withArgs:executeMethod:

Klaus D. Witzel
Both (188,189) are in

  JMM 1/27/2005 15:05, initialization, only in change set VMMaker-tpr.58

and 188 (not 189) is in

  tpr 3/24/2004 21:25, initialization, only in change set VMMaker3-7b5

If you cannot see the fallback code in the debugger of

  nil executeMethod: Object>>#break

then your VM most likely does the primitives.

HTH.

/Klaus


On Sat, 15 Sep 2007 07:10:22 +0200, Igor Stasenko wrote:

> Its unclear, is this primitive <primitive: 188> works?
> In what VM version it can be found?
>
> I fear that its not supported, because of:
>
> Object>>with: arg1 executeMethod: compiledMethod
> "Execute compiledMethod against the receiver and arg1"
>
> "<primitive: 189>" "uncomment once prim 189 is in VM"
> ^ self withArgs: {arg1} executeMethod: compiledMethod
>



Reply | Threaded
Open this post in threaded view
|

Re: Object>>withArgs:executeMethod:

Igor Stasenko
On 15/09/2007, Klaus D. Witzel <[hidden email]> wrote:

> Both (188,189) are in
>
>   JMM 1/27/2005 15:05, initialization, only in change set VMMaker-tpr.58
>
> and 188 (not 189) is in
>
>   tpr 3/24/2004 21:25, initialization, only in change set VMMaker3-7b5
>
> If you cannot see the fallback code in the debugger of
>
>   nil executeMethod: Object>>#break
>
> then your VM most likely does the primitives.
>
I'm just worried that these primitives was revoked, instead of added
as extension to VM.
Thanks for clarification.

> HTH.
>
> /Klaus
>
>
> On Sat, 15 Sep 2007 07:10:22 +0200, Igor Stasenko wrote:
>
> > Its unclear, is this primitive        <primitive: 188> works?
> > In what VM version it can be found?
> >
> > I fear that its not supported, because of:
> >
> > Object>>with: arg1 executeMethod: compiledMethod
> >       "Execute compiledMethod against the receiver and arg1"
> >
> >       "<primitive: 189>" "uncomment once prim 189 is in VM"
> >       ^ self withArgs: {arg1} executeMethod: compiledMethod
> >
>
>
>
>


--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

Re: Object>>withArgs:executeMethod:

Philippe Marschall
In reply to this post by Igor Stasenko
2007/9/15, Igor Stasenko <[hidden email]>:
> Its unclear, is this primitive  <primitive: 188> works?

Oh yes. For quite some time. That was one of the recent speed ups of
the NewCompiler to have an override there and use the primitive.

Cheers
Philippe

> In what VM version it can be found?
>
> I fear that its not supported, because of:
>
> Object>>with: arg1 executeMethod: compiledMethod
>         "Execute compiledMethod against the receiver and arg1"
>
>         "<primitive: 189>" "uncomment once prim 189 is in VM"
>         ^ self withArgs: {arg1} executeMethod: compiledMethod
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
>