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

Avi Bryant avi.bryant at gmail.com
Mon Sep 18 21:04:49 UTC 2006


On Sep 18, 2006, at 12:48 PM, Jecel Assumpcao Jr wrote:

> 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...
>
> Due to inheritance you do have to deal with polymorphism before you  
> can
> inline self sends. Unless you want to add Java silliness like "final".

No, of course we don't want "final", but we can always recompile  
(without inlining) when someone overrides something we've inlined.   
There are enough cases that are never overridden to make the inlining  
worthwhile, I think.

Avi



More information about the Squeak-dev mailing list