diff src/share/vm/classfile/javaClasses.cpp @ 1133:aa62b9388fce

6894206: JVM needs a way to traverse method handle structures Summary: We need a way to walk chained method handles in the JVM to call the right methods and to generate required bytecode adapters for the compilers. Reviewed-by: kvn
author twisti
date Mon, 04 Jan 2010 15:52:40 +0100
parents 84a2da7f454c
children 4ce7240d622c
line wrap: on
line diff
--- a/src/share/vm/classfile/javaClasses.cpp	Mon Jan 04 00:22:57 2010 -0800
+++ b/src/share/vm/classfile/javaClasses.cpp	Mon Jan 04 15:52:40 2010 +0100
@@ -2403,6 +2403,10 @@
   return ptypes(mt)->obj_at(idx);
 }
 
+int java_dyn_MethodType::ptype_count(oop mt) {
+  return ptypes(mt)->length();
+}
+
 
 
 // Support for java_dyn_MethodTypeForm