hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java
equal
deleted
inserted
replaced
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 * |