|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.backend.QOperand
org.multijava.util.backend.QTemporary
org.multijava.util.backend.QStack
This class represents a stack placeholder
| Field Summary | |
static QTemporary[] |
EMPTY
|
static int |
UNINITIALIZED
|
static int |
UNUSED
|
| Constructor Summary | |
(package private) |
QStack(int type)
|
| Method Summary | |
void |
def(BasicBlock block,
int pos)
Uses a temporary |
QOrigin |
duplicate()
Duplicate this node |
void |
enforceColor()
Enforces the precolor |
void |
generate(CodeSequence seq)
Generates instructions for this quadruple |
QTemporary |
getDef()
Returns the defined temporary. |
InstructionHandle |
getInstruction()
Returns the primitive instruction |
QOrigin[] |
getOrigins()
returns the parameters of this instruction |
int |
getPosition()
Gets position |
int |
getPrecolor()
Returns the register number of this temporary |
int |
getRegister()
Returns the register number of this temporary |
int |
getSize()
Returns the size (the number of slot) of this temporary |
int |
getType()
The size (in instruction) of the subtree |
int |
getUseCount()
Returns the number of uses |
QTemporary[] |
getUses()
Returns the used temporaries. |
void |
setOrigin(QOrigin origin,
int i)
Sets the parameters of this instruction |
void |
setPosition(int pos)
Sets position |
void |
setRegister(int reg)
|
void |
store(CodeSequence seq,
boolean isLive)
Generates instructions for destination |
String |
toString()
Human readable form |
void |
use(BasicBlock block,
int pos)
Uses a temporary |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int UNINITIALIZED
public static final int UNUSED
public static final QTemporary[] EMPTY
| Constructor Detail |
QStack(int type)
| Method Detail |
public String toString()
toString in class QTemporarypublic QTemporary getDef()
getDef in interface QDestinationgetDef in class QTemporarypublic QTemporary[] getUses()
getUses in interface QOrigingetUses in class QTemporarypublic void generate(CodeSequence seq)
generate in interface QOrigingenerate in class QTemporaryseq - The code sequence of instruction
public void store(CodeSequence seq,
boolean isLive)
store in interface QDestinationstore in class QTemporaryseq - The code sequence of instructionisLive - Is the destination live after this store ?public int getSize()
public int getRegister()
public int getPrecolor()
public void enforceColor()
public int getType()
getType in interface QOriginpublic QOrigin duplicate()
duplicate in interface QOrigin
public void use(BasicBlock block,
int pos)
public void def(BasicBlock block,
int pos)
public int getUseCount()
public void setPosition(int pos)
public int getPosition()
public void setRegister(int reg)
public InstructionHandle getInstruction()
getInstruction in interface QOriginpublic QOrigin[] getOrigins()
getOrigins in interface QOrigin
public void setOrigin(QOrigin origin,
int i)
setOrigin in interface QOrigin
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||