VM & Runtime stack

Mathieu Suen mathk.sue at gmail.com
Tue Jul 17 07:25:14 UTC 2007


With the NewCompiler we don't need to know if the context is used.
If you use temporaries it will be store in an environment. (ie a  
ClosureEnvironment)

	Mth



On Jul 17, 2007, at 4:16 AM, sig wrote:

> Compiler, in most cases, can figure out if block requires  
> MethodContext or not.
> I don't know much about Squeak compiler, but inspecting Dolphin
> bytecode shows that they having set of flags to indicate if block uses
> MethodContext, self e.t.c..
> For instance, block like: [ literal message ] , [ SomeClass message ]
> ] , which don't use any method's temps/args/self/returns
> can be executed from anywhere returning same result, thus they can be
> prepared for execution differently to avoid unneeded checks/flushes
> e.t.c.




More information about the Squeak-dev mailing list