self send inliner (was: [Enh][VM] primitiveApplyToFromTo for the heart of theenumeration of collections?)

Avi Bryant avi.bryant at gmail.com
Tue Sep 19 19:59:32 UTC 2006


On Sep 19, 2006, at 10:14 AM, Philippe Marschall wrote:

> 2006/9/18, Jecel Assumpcao Jr <jecel at merlintec.com>:
>> Avi Bryant wrote:
>> Has anyone ever played with a simple self-sends inliner?  No de-
>> inlining when debugging, no post-inlining optimization, no attempt to
>> deal with polymorphism, just inlining monomorphic self-sends...
>
> Well, I'm toying around with something even simpler:
>
> - Does not uninline when methods are added. So you need to load all
> your code first and then recompile it.
> - Can only implement methods that contain no return or the return is
> the last statement.
>
> Do you have a case study?

I think the Collection hierarchy would be the right place to start.   
I was always impressed by how Strongtalk could do things like  
implement #at: in terms of #at:ifAbsent:.

Avi



More information about the Squeak-dev mailing list