hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java
changeset 39421 a9652c919db8
parent 38695 08b834856583
child 39423 0f8dc3693499
equal deleted inserted replaced
39420:987528901b83 39421:a9652c919db8
   265      * @throws LinkageError if resolution failed
   265      * @throws LinkageError if resolution failed
   266      */
   266      */
   267     native HotSpotResolvedObjectTypeImpl resolveTypeInPool(HotSpotConstantPool constantPool, int cpi) throws LinkageError;
   267     native HotSpotResolvedObjectTypeImpl resolveTypeInPool(HotSpotConstantPool constantPool, int cpi) throws LinkageError;
   268 
   268 
   269     /**
   269     /**
   270      * Looks up and attempts to resolve the {@code JVM_CONSTANT_Field} entry at index {@code cpi} in
   270      * Looks up and attempts to resolve the {@code JVM_CONSTANT_Field} entry for at index {@code cpi} in
   271      * {@code constantPool}. The values returned in {@code info} are:
   271      * {@code constantPool}. For some opcodes, checks are performed that require the {@code method}
       
   272      * that contains {@code opcode} to be specified. The values returned in {@code info} are:
   272      *
   273      *
   273      * <pre>
   274      * <pre>
   274      *     [(int) flags,   // only valid if field is resolved
   275      *     [(int) flags,   // only valid if field is resolved
   275      *      (int) offset]  // only valid if field is resolved
   276      *      (int) offset]  // only valid if field is resolved
   276      * </pre>
   277      * </pre>
   279      * {@code JVM_CONSTANT_Field} entry.
   280      * {@code JVM_CONSTANT_Field} entry.
   280      *
   281      *
   281      * @param info an array in which the details of the field are returned
   282      * @param info an array in which the details of the field are returned
   282      * @return the type defining the field if resolution is successful, 0 otherwise
   283      * @return the type defining the field if resolution is successful, 0 otherwise
   283      */
   284      */
   284     native HotSpotResolvedObjectTypeImpl resolveFieldInPool(HotSpotConstantPool constantPool, int cpi, byte opcode, long[] info);
   285     native HotSpotResolvedObjectTypeImpl resolveFieldInPool(HotSpotConstantPool constantPool, int cpi, HotSpotResolvedJavaMethodImpl method, byte opcode, long[] info);
   285 
   286 
   286     /**
   287     /**
   287      * Converts {@code cpci} from an index into the cache for {@code constantPool} to an index
   288      * Converts {@code cpci} from an index into the cache for {@code constantPool} to an index
   288      * directly into {@code constantPool}.
   289      * directly into {@code constantPool}.
   289      *
   290      *