In my perfect world a pic looks like this at the lowest level

        mov  object field ==> eax
        je eax=test1  to implementation1  " the special GWT you mention "
        je eax=test2  to implementation2
        ...
        handle miss

I would want to move the testN order to optimize,  replace implementations, and
of course extend the list without lots of overhead or deopt.  The question is how to
get the JIT to emit code like this.  I was thinking that I may have to wait for Panama
to give me a way to insert the code directly and then hoping its fast.  But maybe the
array idea has merit.

mark

p.s.  Perhaps for small PICs ( the majority ) cpu branch prediction could help

_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to