CompiledMethod>>value:withArguments:

Dan Ingalls Dan.Ingalls at disney.com
Tue Dec 28 20:32:28 UTC 1999


>It's a Compiler bug.  The method Point>>x has a primitive response
>that never fails ("quick push of instance field") and since the
>Compiler expects the runtime to respond to this without ever trying to
>execute bytecodes, it doesn't bother generating any bytecodes in the
>method at all.  To fix this, in MethodNode>>generate: modify the final
>return in the block argument to the first send to simply record the
>primitive index for the quick response:
>
>	self generateIfQuick: [:method | primitive _ method primitive].
>
>then re-accept Point>>x and try the example again.
>
>[Dan: here's an example of cheating and then getting caught. ;-)]

Yikes.  I should say so.  

My guess is that this dates back to the old AppleST image.  In any case, I'll fix it.

Thanks for the alert.

	- Dan





More information about the Squeak-dev mailing list