[squeak-dev] Context reflection regression?
hmm at heeg.de
Sun Apr 11 15:23:55 UTC 2010
Igor Stasenko schrieb:
> I just found that
> a: a b: b c: c
> ^ thisContext sender stackPtr
> answers 0 :(
Which is entirely correct and has been like that since the beginning of
By the time you're looking at the stack of "thisContext sender", the 4
values are not there anymore because they have been moved into the stack
of thisContext. Look at Interpreter>>internalActivateNewMethod, near the
bottom of that method it says "self internalPop: argCount2 + 1". That's
where your stackPtr changes from 4 to 0.
If you would look at the sending context just prior to the send
bytecode, you'd see a stackPtr of 4.
More information about the Squeak-dev