[squeak-dev] Boolean over-optimization #ifTrue:/#ifFalse:
Michael van der Gulik
mikevdg at gmail.com
Wed Mar 5 20:16:04 UTC 2008
On Wed, Mar 5, 2008 at 7:01 PM, Igor Stasenko <siguctua at gmail.com> wrote:
> i currently tried to implement a proxy (subclass of ProtoObject) with
> own IfTrue:/ifFalse: methods.
> What i can't understand, is why VM throws me with #mustBeBoolean
> message instead of doing real send if optimized pattern fails (when
> receiver of #IfTrue: is a non-boolean)?
> Is there any way, without modifying compiler, how to force it to do real
Oh, you'll also have trouble with >>class and >>==. These two messages are
implemented directly in the VM and bypass method lookup. I have no solution
to this but there's a patch for the VM here:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev