comparison graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/MetaAccessProvider.java @ 11682:976ebd1973d1

The runtime might not always be able to report an array length
author Christian Wimmer <christian.wimmer@oracle.com>
date Tue, 17 Sep 2013 10:31:22 -0700
parents 5404cde63c43
children 0e2cceed1caf
comparison
equal deleted inserted replaced
11681:39f98ffd187f 11682:976ebd1973d1
77 * otherwise 77 * otherwise
78 */ 78 */
79 boolean constantEquals(Constant x, Constant y); 79 boolean constantEquals(Constant x, Constant y);
80 80
81 /** 81 /**
82 * Returns the length of an array that is wrapped in a {@link Constant} object. 82 * Returns the length of an array that is wrapped in a {@link Constant} object. If {@code array}
83 * 83 * is not an array, or the array length is not available at this point, the return value is
84 * @throws IllegalArgumentException if {@code array} is not an array 84 * {@code null}.
85 */ 85 */
86 int lookupArrayLength(Constant array); 86 Integer lookupArrayLength(Constant array);
87 87
88 /** 88 /**
89 * Reads a value of this kind using a base address and a displacement. 89 * Reads a value of this kind using a base address and a displacement.
90 * 90 *
91 * @param base the base address from which the value is read 91 * @param base the base address from which the value is read