Arg ordering on the test path method handle for GwT

Rémi Forax forax at univ-mlv.fr
Thu Jan 13 02:46:47 PST 2011


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

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


More information about the mlvm-dev mailing list