Thank you, that is informative! So, if a guy, a semi-newbie at that,  
were to want to write his own search method to look for particular  
byte-code patterns (suggestive of an inlined ifNil:) ... what would be  
some useful examples or a good place to start learning? MethodFinder,  
or is there a better  example?

And, on a related note, if I more generally wanted to write a module  
to eject/translate-to Objective-C instead of C, where would be a good  
place to get started on that learning curve? (Are the classes that  
*once* ejected C code for the VM still functional? Are they in Pharo?)

Thanks in advance,
Cam


On Jul 8, 2009, at 1:43 AM, Adrian Lienhard wrote:

> The reason that ifNil: is not found is that it is inlined. If you view
> the bytecode representation of an ifNil: send, you see that this
> message is never sent. The search looks for symbols in the literal
> frame of compiled methods and hence does not find this special case.
>
> Cheers,
> Adrian
>


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

Reply via email to