Benchmarking Smalltalk on JVM
Mark Roos
mroos at roos.com
Wed Feb 1 19:45:05 PST 2012
>From Rémi
Anyway, you can optimize the last instructions, <= should return a
boolean
so the sequence should be:
ldc 41000000
aload 1
indy <= (ILObject;)Z
if_eq LABEL 1
I am not sure how to handle this in a Smalltalk envrionment. All of the
objects are instances of the same
java type so <= is a method which returns an RtObject which is the
singular instance of true. I have to
compare that return to 'true' to get what the if bytecode wants.
<= could have been a block making type inference more interesting.
thanks for the thoughts
mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20120201/265f8445/attachment.html
More information about the mlvm-dev
mailing list