org.jikesrvm.compilers.opt.regalloc
Class GenericStackManager.ScratchRegister

java.lang.Object
  extended by org.jikesrvm.compilers.opt.regalloc.GenericStackManager.ScratchRegister
Enclosing class:
GenericStackManager

protected static final class GenericStackManager.ScratchRegister
extends Object

Class to represent a physical register currently allocated as a scratch register.


Field Summary
 Register currentContents
          The current contents of scratch
private  boolean dirty
          Is this physical register currently dirty?
 Register scratch
          The physical register used as scratch.
private  boolean spilledIt
          Did we spill a value in order to free up this scratch register?
 
Constructor Summary
GenericStackManager.ScratchRegister(Register scratch, Register currentContents)
           
 
Method Summary
 boolean hadToSpill()
           
 boolean isDirty()
           
 void setDirty(boolean b)
           
 void setHadToSpill(boolean b)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

scratch

public final Register scratch
The physical register used as scratch.


currentContents

public Register currentContents
The current contents of scratch


dirty

private boolean dirty
Is this physical register currently dirty? (Must be written back to memory?)


spilledIt

private boolean spilledIt
Did we spill a value in order to free up this scratch register?

Constructor Detail

GenericStackManager.ScratchRegister

public GenericStackManager.ScratchRegister(Register scratch,
                                           Register currentContents)
Method Detail

isDirty

public boolean isDirty()

setDirty

public void setDirty(boolean b)

hadToSpill

public boolean hadToSpill()

setHadToSpill

public void setHadToSpill(boolean b)

toString

public String toString()
Overrides:
toString in class Object