[squeak-dev] thisContext method ... can answer a compiled block

Eliot Miranda eliot.miranda at gmail.com
Thu Feb 18 17:19:45 UTC 2021



> On Feb 18, 2021, at 6:04 AM, Marcel Taeumel <marcel.taeumel at hpi.de> wrote:
> 
> 
> Hi all --
> 
> Looking at the implementation of CompiledBlock >> #method and CompiledMethod >> #method, I wonder whether the implementation of Context >> #method is correct.
> 
> What should be the answer of
>    [ thisContext method ] value
> 
> An instance of CompiledMethod or an instance of CompiledBlock? If the latter is okay, then "thisContext method method" would be the necessary idiom to support lookup in the underlying behavior.

thisContext home method
thisContext method home

I think thisContext method *must* answer the method object thisContext is referring to, and hence will refer to a CompiledBlock fir a lock activation when using SistaV1. thisContext home method or thisContext method home will answer the CompiledMethod.

We could, indeed should, provide thisContext homeMethod.

> 
> Best,
> Marcel
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210218/162f74ff/attachment.html>


More information about the Squeak-dev mailing list