Hi, Charlie!

MethodIndex in compiler is worth considering.

The following code is from invokeDynamic of StandardASMCompiler.
int index = MethodIndex.getIndex(name);
...
if (index != 0) {
   invokeUtilityMethod("doInvokeDynamicIndexed", callSigIndexed);

In new MethodIndex, index is always greater than 0 (except ""), so
doInvokeDynamicIndexed is always invoked, right? I want to if it is
meaningful.

On the other hand, the index is only meaningful in current JRuby
instance. I mean the index of "example" could be 123 in current JRuby
instance, but it could be 456 in another JRuby instance. So when it's
saved into Class file, it could meaningless when it's loaded again.

If I'm wrong, feel free to tell me.

Ye Zheng

--
Everything is simple!

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to