TaggedArrays (Proposal)

Mark Roos mroos at roos.com
Fri Jul 6 19:54:26 PDT 2012


Hi Rémi,  you mention
And now the trick, there is a nice way (several in fact) to explain to 
the JIT
that even if the bytecode contains tests, if the variable contains 
effectively an int,
it's a good idea to remove them.

Ok,  in Smalltalk there are some methods which are usually integer ops
so its easy to determine vars that are likely integer.  I have slots in 
the stack reserved for just this idea.

So if I have a pair of slots A and B where A would be the integer from and 
B the reference.
Would I test B to be null and if so do an integer op on A?

So plese point me at the bytecode tricks that make the test go away.

regards
mark

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20120706/4ac98fa8/attachment.html 


More information about the mlvm-dev mailing list