Constructor and Description |
---|
ValueUtil() |
Modifier and Type | Method and Description |
---|---|
static AllocatableValue |
asAllocatableValue(Value value) |
static JavaConstant |
asConstant(Value value) |
static Register |
asDoubleReg(Value value) |
static Register |
asFloatReg(Value value) |
static Register |
asIntReg(Value value) |
static Register |
asLongReg(Value value) |
static Register |
asObjectReg(Value value) |
static Register |
asRegister(Value value) |
static StackSlot |
asStackSlot(Value value) |
static StackSlotValue |
asStackSlotValue(Value value) |
static VirtualObject |
asVirtualObject(Value value) |
static VirtualStackSlot |
asVirtualStackSlot(Value value) |
private static List<Register> |
collectRegisters(Object[] values,
List<Register> registers) |
static boolean |
differentRegisters(Object... values)
Checks if all the provided values are different physical registers.
|
static boolean |
isAllocatableValue(Value value) |
static boolean |
isConstant(Value value) |
static boolean |
isIllegal(Value value) |
static boolean |
isLegal(Value value) |
static boolean |
isRegister(Value value) |
static boolean |
isStackSlot(Value value) |
static boolean |
isStackSlotValue(Value value) |
static boolean |
isVirtualObject(Value value) |
static boolean |
isVirtualStackSlot(Value value) |
static boolean |
sameRegister(Value v1,
Value v2) |
static boolean |
sameRegister(Value v1,
Value v2,
Value v3) |
public ValueUtil()
public static boolean isVirtualObject(Value value)
public static VirtualObject asVirtualObject(Value value)
public static boolean isConstant(Value value)
public static JavaConstant asConstant(Value value)
public static boolean isAllocatableValue(Value value)
public static AllocatableValue asAllocatableValue(Value value)
public static boolean isStackSlot(Value value)
public static StackSlot asStackSlot(Value value)
public static boolean isStackSlotValue(Value value)
public static StackSlotValue asStackSlotValue(Value value)
public static boolean isVirtualStackSlot(Value value)
public static VirtualStackSlot asVirtualStackSlot(Value value)
public static boolean isRegister(Value value)
public static Register asRegister(Value value)
public static Register asObjectReg(Value value)
public static Register asFloatReg(Value value)
public static Register asDoubleReg(Value value)
public static boolean sameRegister(Value v1, Value v2)
public static boolean sameRegister(Value v1, Value v2, Value v3)
public static boolean differentRegisters(Object... values)