--- old/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/ConstantPool.java 2013-04-12 12:30:20.000000000 -0700 +++ new/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/ConstantPool.java 2013-04-12 12:30:20.000000000 -0700 @@ -30,6 +30,13 @@ public interface ConstantPool { /** + * Returns the number of entries the constant pool. + * + * @return number of entries in the constant pool + */ + int length(); + + /** * Ensures that the type referenced by the specified constant pool entry is loaded and * initialized. This can be used to compile time resolve a type. It works for field, method, or * type constant pool entries.