[Newcompiler] tagging methods?

Philippe Marschall philippe.marschall at gmail.com
Sun Nov 26 14:16:12 UTC 2006


Hi

Problem:
The new compiler generates bytecode that is slightly different than
the one generated by the old compiler. Because of this they can not be
decompiled using the old decompiler. Currently the logic to determine
whether to use the old or new decompiler check the value of
#compileUseNewCompiler. This is especially annoying because it breaks
the debugger.

Solution:
We tag a method as compiled with the new compiler via a method
property. We can do the same for #compileBlocks as closures.

Consequences:
All methods compiled with the new compiler will have a method property
object, so they'll be a bit bigger.
Decompiling (debugging) methods compiled with the old compiler while
having #compileUseNewCompiler on will work.

Comments?

Cheers
Philippe


More information about the Newcompiler mailing list