[squeak-dev] Re: Strange primitives doing nothing
Andreas Raab
andreas.raab at gmx.de
Fri Nov 7 16:56:11 UTC 2008
Igor Stasenko wrote:
> Any ideas, why they still in use? Can there be something in between,
> when interpreter enters the method? Or, if nothing, then why they
> still there? :)
As the comments say:
primitiveMarkUnwindMethod - Mark the method for exception unwinding.
primitiveMarkHandlerMethod - Mark the method for exception handling.
In other words these primitives are used to mark the frames containing
BlockContext>>on:do: and BlockContext>>ensure: so that the VM can find
these methods during unwind and exception handling. If you look at
non-local returns in the VM (returnValue:to:) you'll see this being used.
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|