Branch: refs/heads/master Home: http://github.com/penberg/jato
Commit: 57ac9bead86fda7612245ead4faf3726395aa089 http://github.com/penberg/jato/commit/57ac9bead86fda7612245ead4faf3726395aa089 Author: Tomek Grabiec <tgrab...@gmail.com> Date: 2009-10-11 (Sun, 11 Oct 2009) Changed paths: M jit/bytecode-to-ir.c Log Message: ----------- jit: skip conversion of unreachable basic blocks Basic blocks which are unreachable in CFG and are not exception handlers will not be converted. This is a workaround for a problem encountered in bytecode generated by clojure. Clojure generates unreachable basic blocks which leave empty mimic stack and jump to a basic block which expects a value on mimic stack. This breaks mimic stack resolution because we have different stack depths on different paths (bb1->bb3 and bb2->bb3): -- bb1 (unreachable) [main] [ 354 ] 0xa7 goto 359 -- bb2 [main] [ 357 ] 0x57 pop [main] [ 358 ] 0x01 aconst_null -- bb3 [main] [ 359 ] 0xb0 areturn Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi> ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel