Inlined ifNil:

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

Inlined ifNil:

MrGwen
Hi,

here is a patch for the compiler to inline the ifNil: message,
it's interesting since we don't need to make a block closure
and to send the ifNil: message.

Gwen

_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk

inlined-ifNil.patch (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Inlined ifNil:

Paolo Bonzini-2
Thanks, I'll look at it when I come back.

Paolo

On Fri, Jun 24, 2011 at 06:59, Gwenael Casaccio <[hidden email]> wrote:

> Hi,
>
> here is a patch for the compiler to inline the ifNil: message,
> it's interesting since we don't need to make a block closure
> and to send the ifNil: message.
>
> Gwen
>
> _______________________________________________
> help-smalltalk mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/help-smalltalk
>
>

_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Inlined ifNil:

Paolo Bonzini-2
In reply to this post by MrGwen
On 06/24/2011 06:59 AM, Gwenael Casaccio wrote:
> +  _gst_compile_byte (POP_STACK_TOP, 0);
> +  //SUB_STACK_DEPTH (1);
> +

Why is this commented?  Hint: if it has #if 0 or //, it will not be
applied as-is (or if it is an RFC, you need to explain the problem). :)

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk