org.jikesrvm.ia32
Enum RegisterConstants.FPR
java.lang.Object
java.lang.Enum<RegisterConstants.FPR>
org.jikesrvm.ia32.RegisterConstants.FPR
- All Implemented Interfaces:
- Serializable, Comparable<RegisterConstants.FPR>, RegisterConstants.FloatingPointMachineRegister, RegisterConstants.MachineRegister
- Enclosing interface:
- RegisterConstants
public static enum RegisterConstants.FPR
- extends Enum<RegisterConstants.FPR>
- implements RegisterConstants.FloatingPointMachineRegister
Representation of x87 floating point registers
FP0
public static final RegisterConstants.FPR FP0
FP1
public static final RegisterConstants.FPR FP1
FP2
public static final RegisterConstants.FPR FP2
FP3
public static final RegisterConstants.FPR FP3
FP4
public static final RegisterConstants.FPR FP4
FP5
public static final RegisterConstants.FPR FP5
FP6
public static final RegisterConstants.FPR FP6
FP7
public static final RegisterConstants.FPR FP7
vals
private static final RegisterConstants.FPR[] vals
- Local copy of the backing array. Copied here to avoid calls to clone
values
public static RegisterConstants.FPR[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (RegisterConstants.FPR c : RegisterConstants.FPR.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static RegisterConstants.FPR valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
value
public byte value()
- Specified by:
value
in interface RegisterConstants.MachineRegister
- Returns:
- encoded value of this register
needsREXprefix
public boolean needsREXprefix()
- Specified by:
needsREXprefix
in interface RegisterConstants.MachineRegister
- Returns:
- does this register require a REX prefix byte?
lookup
public static RegisterConstants.FPR lookup(int num)
- Convert encoded value into the FPR it represents
- Parameters:
num
- encoded value
- Returns:
- represented FPR