[squeak-dev] About generating compiled method(s)

Igor Stasenko siguctua at gmail.com
Thu Dec 10 23:40:21 UTC 2009


This question is mostly to Eliot,
since he the last who dare to touch the Compiler deeply..
My concern is use pattern:

 	method := methodNode generate: #(0 0 0 0).
	^method copyWithTempsFromMethodNode: methodNode

the point of nitpicking is the need of generating a dummy
CompiledMethod instance,
which used for nothing else than making a copy and attachment of temp names.

And, the question, is there a way to skip generating the dummy
compiled method and just do:

  method := methodNode generateWithTempNames.

or:

  method := methodNode generate: (methodNode tempsTrailer).

?


-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list