public abstract class Register extends ImmediateOrRegister
Register is an abstraction over machine registers.
FIXME: should align constants with underlying VM code
Modifier and Type | Field and Description |
---|---|
protected int |
number
Corresponds to the machine register code.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object x) |
int |
getNumber() |
abstract int |
getNumberOfRegisters()
Must be overridden by subclass to indicate number of available
registers on this platform
|
int |
hashCode() |
abstract boolean |
isFloat() |
abstract boolean |
isFramePointer() |
boolean |
isRegister() |
abstract boolean |
isStackPointer() |
boolean |
isValid() |
isAddress, isImmediate
protected int number
public abstract int getNumberOfRegisters()
public boolean isValid()
public int getNumber()
public boolean equals(java.lang.Object x)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isRegister()
isRegister
in class Operand
public abstract boolean isStackPointer()
public abstract boolean isFramePointer()
public abstract boolean isFloat()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.