[VM-dev] Do we have special bytecode to push class of object or to compare object class?

Eliot Miranda eliot.miranda at gmail.com
Fri May 27 21:04:34 UTC 2016


H Denis,

    there are bytecodes for #== and #class that do no lookup.  Look for Smalltalk specialSelectors and you'll figure it out.  There are 32 special selectors.  The first is #+ and has bytecode 176 in the default bytecode set.

_,,,^..^,,,_ (phone)

> On May 27, 2016, at 12:54 PM, Denis Kudriashov <dionisiydk at gmail.com> wrote:
> 
> Hi.
> 
> I want to play with idea to make #ifNil: optimization in the way that for particular receiver it will be always real message send.
> I want to compile it with extra check like 
> receiver class = MySpecialClass ifTrue: ifNilBlock.
> 
> I want to measure performance impact. 
> I know in the past #class was compiled as special bytecode. Is it available now? And what bytecode I could use?
> 
> Best regards,
> Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20160527/0090a363/attachment.htm


More information about the Vm-dev mailing list