public class NamedLocationIdentity
extends org.graalvm.word.LocationIdentity
LocationIdentity with a name.| Modifier and Type | Field and Description |
|---|---|
static org.graalvm.word.LocationIdentity |
ARRAY_LENGTH_LOCATION
Denotes the location of the length field of a Java array.
|
static org.graalvm.word.LocationIdentity |
FINAL_LOCATION
Denotes the location of a value that is guaranteed to be unchanging.
|
static org.graalvm.word.LocationIdentity |
OFF_HEAP_LOCATION
Denotes an off-heap address.
|
| Modifier | Constructor and Description |
|---|---|
protected |
NamedLocationIdentity(String name,
boolean immutable) |
| Modifier and Type | Method and Description |
|---|---|
static org.graalvm.word.LocationIdentity |
getArrayLocation(JavaKind elementKind)
Returns the named location identity for an array of the given element kind.
|
static NamedLocationIdentity |
immutable(String name)
Creates a named unique location identity for read operations against immutable memory.
|
static boolean |
isArrayLocation(org.graalvm.word.LocationIdentity l) |
boolean |
isImmutable() |
static NamedLocationIdentity |
mutable(String name)
Creates a named unique location identity for read and write operations against mutable
memory.
|
String |
toString() |
public static final org.graalvm.word.LocationIdentity FINAL_LOCATION
public static final org.graalvm.word.LocationIdentity ARRAY_LENGTH_LOCATION
public static final org.graalvm.word.LocationIdentity OFF_HEAP_LOCATION
protected NamedLocationIdentity(String name, boolean immutable)
public static NamedLocationIdentity mutable(String name)
name - the name of the new location identitypublic static NamedLocationIdentity immutable(String name)
name - the name of the new location identitypublic boolean isImmutable()
isImmutable in class org.graalvm.word.LocationIdentitypublic static org.graalvm.word.LocationIdentity getArrayLocation(JavaKind elementKind)
public static boolean isArrayLocation(org.graalvm.word.LocationIdentity l)