show bytecodes?

Robert Withers reefedjib at yahoo.com
Sat Oct 13 21:02:48 UTC 2007


Ok, this gets me into the CompiledMethod, with which I have very  
little experience.  I did find that the 'source' toggle button in a  
browser has a bytecodes option.  It didn't help me much, seeing the  
bytecodes.  I am trying to find a way to invoke a bytecode primitive  
from the image.  So, for instance, given 2 SmallIntegers in hand, I  
want to run bytecodePrimAdd without running #+.   Is there a way to  
do this?  I am digging through #lookupInMethodCacheSel:class: at the  
moment to see how primitive dispatch works.

On Oct 13, 2007, at 1:40 PM, Lukas Renggli wrote:

>> The 'show bytescodes' option on the method text pane menu doesn't
>> work.  How ca I look at the bytecodes of a method?
>
> Inspect the expression:
>
>      ClassName >> #methodName
>
> Cheers,
> Lukas
>
> -- 
> Lukas Renggli
> http://www.lukas-renggli.ch
>




More information about the Squeak-dev mailing list