[Pharo-project] CompiledMethodTrailer with a different CompiledMethod class

Igor Stasenko siguctua at gmail.com
Mon May 24 04:54:57 EDT 2010


On 24 May 2010 10:31, Hernán Morales Durand <hernan.morales at gmail.com> wrote:
> Hello
>
> Just to make a little note. I'm adapting the lightweight classes
> package to work with CompilerMethodTrailer. In this method
>
> CompiledMethodTrailer>>createMethod: numberOfBytesForAllButTrailer
> header: headerWord
>        | meth |
>        encodedData ifNil: [ self encode ].
>        meth := CompiledMethod newMethod: numberOfBytesForAllButTrailer +
> size header: headerWord.
>        ...
>
> I need to answer a different kind of CompiledMethod, it would be nice
> if my own CompiledMethod class could be specified in some way to make
> the CompiledMethodTrailer more flexible.

Yes, you could add a class parameter, so method will take 3

createMethod: numberOfBytesForAllButTrailer header: headerWord class:
aMethodClass

> Cheers,
>
> Hernán
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



-- 
Best regards,
Igor Stasenko AKA sig.




More information about the Pharo-dev mailing list