On 01/13/2011 07:29 AM, Mark Roos wrote:

Sorry for not being clear. In my Smalltalk implementation all objects are of type RtObject so the types ( classes ) are always RtObject. return and args alike. So if I know the airity I know the type array. It just seems like more work for the jvm in a path
which I hope will be fast..  Or perhaps this in only a compile time cost?

it's like a compile time cost, it's a runtime cost that you pay once.

Also it's better to use directly Java object instead of your own object,
e.g. use Object instead of RtObject. If RtObject has methods, you can
refactor them has static method and use invokedynamic to call them on
a plain old Object.
Of course, this doesn't work if you have states in your object.


regards
mark

Rémi

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

Reply via email to