Top Description Fields Constructors Methods
jdk.vm.ci.code

public final Class Location

extends Object
Class Inheritance

Represents a location where a value can be stored. This can be either a Register or a stack slot.

Field Summary

Modifier and TypeField and Description
public final int
public final Register

Constructor Summary

AccessConstructor and Description
private
Location(Register reg, int offset)

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
public static Location
register(Register reg)

Create a Location for a register.

public static Location
stack(int offset)

Create a Location for a stack slot.

public static Location
subregister(Register reg, int
the offset in bytes into the vector register
offset
)

Create a Location for a vector subregister.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

offsetback to summary
public final int offset
regback to summary
public final Register reg

Constructor Detail

Locationback to summary
private Location(Register reg, int offset)

Method Detail

isRegisterback to summary
public boolean isRegister()
isStackback to summary
public boolean isStack()
registerback to summary
public static Location register(Register reg)

Create a Location for a register.

stackback to summary
public static Location stack(int offset)

Create a Location for a stack slot.

subregisterback to summary
public static Location subregister(Register reg, int offset)

Create a Location for a vector subregister.

Parameters
reg:Register

the vector register

offset:int

the offset in bytes into the vector register

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override