public class ReadVariableNode extends LoadNode
vresult = x
EXCEPTION_REG, FIRST_ORDINARY_REG, NO_VALUE, RETURN_REG| Constructor and Description |
|---|
ReadVariableNode(java.lang.String varname,
int result_reg,
int result_base_reg,
SourceLocation location)
Constructs a new read variable node.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canThrowExceptions()
Returns true if this node may throw exceptions.
|
void |
check(BasicBlock b)
Perform a consistency check of this node.
|
int |
getResultBaseRegister()
Returns the result base register.
|
java.lang.String |
getVariableName()
Returns the source variable name.
|
java.lang.String |
toString()
Returns a string description of this node.
|
void |
visitBy(NodeVisitor v)
Visits this node with the given visitor.
|
getResultRegisterclone, getBlock, getDuplicateOf, getImplicitAfterCall, getIndex, getSourceLocation, getThisOrDuplicateOf, isArtificial, isRegistersDone, setArtificial, setBlock, setDuplicateOf, setImplicitAfterCall, setIndex, setRegistersDone, setSourceLocationpublic ReadVariableNode(java.lang.String varname,
int result_reg,
int result_base_reg,
SourceLocation location)
varname - The name of the variable.result_reg - The register for the result.result_base_reg - The register for the base variable.location - The source location.public boolean canThrowExceptions()
AbstractNodecanThrowExceptions in class AbstractNodepublic void check(BasicBlock b)
AbstractNodecheck in class AbstractNodeb - basic block containing this nodepublic int getResultBaseRegister()
AbstractNode.NO_VALUE means 'absent', which is used for "this".public java.lang.String getVariableName()
public java.lang.String toString()
AbstractNodetoString in class AbstractNodepublic void visitBy(NodeVisitor v)
NodeCopyright © 2009-2019 Aarhus University