|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.backend.QNode
org.multijava.util.backend.QQuadruple
This class represents a quadruple: a source and a destination
| Field Summary | |
private QDestination |
dest
|
private QOrigin |
origin
|
| Constructor Summary | |
QQuadruple(QDestination dest,
QOrigin origin)
|
|
| Method Summary | |
static QTemporary[] |
buildQuadruples(MethodEnv env,
BasicBlock block,
InstructionHandle[] insns,
QTemporary[] entryStack,
ArrayList vect)
Builds the quadruple list |
QOrigin |
duplicate()
Duplicate this node |
void |
generate(CodeSequence seq)
Generates instructions for this quadruple |
QTemporary |
getDef()
Returns the defined temporary. |
InstructionHandle |
getInstruction()
Returns the primitive instruction |
QJump |
getJump()
Returns this node a a jump |
QTemporary[] |
getLivein()
Returns the livein temporary. |
QTemporary[] |
getLiveout()
Returns the liveout temporary. |
QOrigin[] |
getOrigins()
returns the parameters of this instruction |
QQuadruple |
getStore()
Returns this node a a jump |
QSwitch |
getSwitch()
Returns this node a a jump |
int |
getType()
The type of this instruction |
QTemporary[] |
getUses()
Returns the used temporaries. |
boolean |
hasSideEffect()
Returns this node a a jump |
boolean |
isJump()
isJump |
boolean |
isLive(QTemporary temp)
Is a temporary live at a certin point |
boolean |
isStore()
isStore |
boolean |
isSwitch()
isJump |
private static QOperand[] |
readOperands(Stack stack,
int size)
|
void |
setLivein(QTemporary[] livein)
Sets the livein temporary. |
void |
setLiveout(QTemporary[] liveout)
Sets the liveout temporary. |
void |
setOrigin(QOrigin origin,
int i)
Sets the parameters of this instruction |
String |
toString()
Human readable form |
void |
useStack()
Uses the stack instead of a local var |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private QDestination dest
private QOrigin origin
| Constructor Detail |
public QQuadruple(QDestination dest,
QOrigin origin)
| Method Detail |
public boolean isStore()
isStore in class QNodepublic QQuadruple getStore()
getStore in class QNodepublic String toString()
toString in class Objectpublic int getType()
getType in interface QOriginpublic QOrigin duplicate()
duplicate in interface QOriginpublic void useStack()
public QOrigin[] getOrigins()
getOrigins in interface QOrigin
public void setOrigin(QOrigin origin,
int i)
setOrigin in interface QOriginpublic QTemporary getDef()
public QTemporary[] getUses()
getUses in interface QOriginpublic void generate(CodeSequence seq)
generate in interface QOriginseq - The code sequence of instruction
public static QTemporary[] buildQuadruples(MethodEnv env,
BasicBlock block,
InstructionHandle[] insns,
QTemporary[] entryStack,
ArrayList vect)
insns - the list of instructionxentryStack - the stack in entryvect - a place holder for quadruples
private static QOperand[] readOperands(Stack stack,
int size)
public InstructionHandle getInstruction()
public boolean isJump()
public QJump getJump()
public boolean isSwitch()
public QSwitch getSwitch()
public boolean hasSideEffect()
public QTemporary[] getLivein()
public void setLivein(QTemporary[] livein)
public QTemporary[] getLiveout()
public void setLiveout(QTemporary[] liveout)
public boolean isLive(QTemporary temp)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||