On Jul 20, 2013, at 8:59 PM, Udo Schneider <udo.schnei...@homeaddress.de> wrote:

> I just stumbled over some IRBuilder behaviour which I'm not sure about.
> 
> 1) Jump/Target Pairs
> As far as I understood each jump target can only be used by one jump. So if 
> multiple jumps need to jump to the same location I have to create multiple 
> targets (one per jump) pointing to the same location.
> I can work with this behavior just fine - I'm just wondering what's the 
> rationale behind this restriction? IMHO the bytecode itself does not impose 
> that restriction.
> 
It's not needed for the compiler...

> 2) IR -> AST
> I created some IR sequences which works perfectly fine as expected. However 
> trying to get the compiled method's AST results in an endless loop. I assume 
> this is expected behavior as the process IR -> AST only works for a subset of 
> instruction sequences normally generated by Smalltalk code. But I just wanted 
> to be sure.
> 
IR-> AST Is *NOT* there. (THere is no code that does IR ->AST).

there is just the old BC->OLD AST which only works on code compiled with the 
*OLD* compiler.

The decompielr right now is called when there is no byte code (the old 
decompiler).
This will be fixed soonish.

        Marcus



Reply via email to