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@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