VirtualObject
is used during deoptimization to recreate the
object.
Modifier and Type | Class and Description |
---|---|
public static interface |
Modifier and Type | Field and Description |
---|---|
private final int | |
private boolean | |
private JavaKind[] | |
private final ResolvedJavaType | |
private JavaValue[] |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
private static StringBuilder | |
public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
public static VirtualObject | Returns: a newVirtualObject instance.the type of the object whose allocation was removed during compilation. This can
be either an instance of an array type. type, int a unique id that identifies the object within the debug information for one
position in the compiled code. id)Creates a new |
public static VirtualObject | Returns: a newVirtualObject instance.the type of the object whose allocation was removed during compilation. This can
be either an instance of an array type. type, int a unique id that identifies the object within the debug information for one
position in the compiled code. id, boolean a flag that tells the runtime that the object may be a boxed primitive and
that it possibly needs to be obtained from the box cache instead of creating a new
instance. isAutoBox)Creates a new |
public int | getId()
Returns the unique id that identifies the object within the debug information for one position in the compiled code. |
public JavaKind | |
public ResolvedJavaType | |
public JavaValue[] | getValues()
Returns the array containing all the values to be stored into the object when it is recreated. |
public int | |
public boolean | |
private static boolean | |
public void | setValues(JavaValue[]
an array containing all the values to be stored into the object when it is
recreated. values, JavaKind[] an array containing the Java kinds of the values. This must have the same
length as slotKinds)values . This array is now owned by this object and must not be
mutated by the caller.Overwrites the current set of values with a new one. |
public String | |
public void |
id | back to summary |
---|---|
private final int id |
isAutoBox | back to summary |
---|---|
private boolean isAutoBox |
slotKinds | back to summary |
---|---|
private JavaKind[] slotKinds |
type | back to summary |
---|---|
private final ResolvedJavaType type |
values | back to summary |
---|---|
private JavaValue[] values |
VirtualObject | back to summary |
---|---|
private VirtualObject(ResolvedJavaType type, int id, boolean isAutoBox) |
appendValue | back to summary |
---|---|
private static StringBuilder appendValue(StringBuilder buf, JavaValue value, Set<VirtualObject> visited) |
equals | back to summary |
---|---|
public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. |
get | back to summary |
---|---|
public static VirtualObject get(ResolvedJavaType type, int id) Creates a new
|
get | back to summary |
---|---|
public static VirtualObject get(ResolvedJavaType type, int id, boolean isAutoBox) Creates a new
|
getId | back to summary |
---|---|
public int getId() Returns the unique id that identifies the object within the debug information for one position in the compiled code. |
getSlotKind | back to summary |
---|---|
public JavaKind getSlotKind(int index) Returns the kind of the value at |
getType | back to summary |
---|---|
public ResolvedJavaType getType() Returns the type of the object whose allocation was removed during compilation. This can be either an instance of an array type. |
getValues | back to summary |
---|---|
public JavaValue[] getValues() Returns the array containing all the values to be stored into the object when it is recreated. This field is intentional exposed as a mutable array that a compiler may modify (e.g. during register allocation).
|
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
|
isAutoBox | back to summary |
---|---|
public boolean isAutoBox() Returns true if the object is a box. For boxes the deoptimization would check if the value of the box is in the cache range and try to return a cached object. |
same | back to summary |
---|---|
private static boolean same(Object o1, Object o2) |
setValues | back to summary |
---|---|
public void setValues(JavaValue[] values, JavaKind[] slotKinds) Overwrites the current set of values with a new one.
|
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object. |
verifyLayout | back to summary |
---|---|
public void verifyLayout(VirtualObject. |
Modifier and Type | Method and Description |
---|---|
public int | |
public default JavaKind |
getOffset | back to summary |
---|---|
public int getOffset(ResolvedJavaField field) |
getStorageKind | back to summary |
---|---|
public default JavaKind getStorageKind(ResolvedJavaField field) |