java.lang.Object
Compil3r.Quad.MethodSummary.State
- All Implemented Interfaces:
- java.lang.Cloneable
- Enclosing class:
- MethodSummary
- public static final class MethodSummary.State
- extends java.lang.Object
- implements java.lang.Cloneable
Records the state of the intramethod analysis at some point in the method.
|
Constructor Summary |
MethodSummary.State(int nRegisters)
Return a new state with the given number of registers. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
registers
final java.lang.Object[] registers
MethodSummary.State
public MethodSummary.State(int nRegisters)
- Return a new state with the given number of registers.
copy
public MethodSummary.State copy()
- Return a shallow copy of this state.
Sets of nodes are copied, but the individual nodes are not.
merge
public boolean merge(MethodSummary.State that)
- Merge two states. Mutates this state, the other is unchanged.
merge
public boolean merge(int i,
java.lang.Object b)
- Merge the given node or set of nodes into the given register.
dump
public void dump(java.io.PrintStream out)
- Dump a textual representation of the state to the given print stream.