[Newcompiler] When Decompiler2 is used?
Mathieu Suen
mathieusuen at yahoo.fr
Tue Mar 20 20:09:31 UTC 2007
Ok so I have plan to write test. So I use Decompiler2.
Is that right?
Math
On Mar 20, 2007, at 8:55 PM, Marcus Denker wrote:
>
> On 20.03.2007, at 17:01, Mathieu Suen wrote:
>
>> Hi,
>>
>> It seems to me that the Decompiler of the NewCompiler is never used?
>>
>
> Yes, it's broken right now, so it uses the fake decompiler (which
> is actually
> just compiling the source).
>
> This really needs to be fixed...
>
> Marcus
>
>> Compiler>>#decompilerClass
>> "Answer a decompiler class appropriate for this Compiler."
>>
>> ^ Preferences compileUseNewCompiler
>> ifTrue: [FakeDecompiler]
>> ifFalse: [Decompiler]
>>
>> But FakeCompiler use only Decompiler:
>>
>> FakeCompiler>>#decompile:in:method:
>> "Answer a MethodNode that is the root of the parse tree for the
>> argument, aMethod, which is the CompiledMethod associated with the
>> message, aSelector. Variables are determined with respect to the
>> argument, aClass."
>>
>> | source |
>> ^ (source := aMethod getSourceFromFile)
>> ifNil: [Decompiler new decompile: selector in: aClass method:
>> aMethod ]
>> ifNotNil: [aMethod parserClass new parse: source class: aMethod
>> methodClass]
>>
>>
>> Math
>
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com
More information about the Newcompiler
mailing list