public class ReturnNode extends Node implements IReturnNode
return [v]
Must be the only node in its block.
EXCEPTION_REG, FIRST_ORDINARY_REG, NO_VALUE, RETURN_REG| Constructor and Description |
|---|
ReturnNode(int value_reg,
SourceLocation location)
Constructs a new return node.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canThrowExceptions()
Returns true if this node may throw exceptions.
|
int |
getReturnValueRegister()
Returns the return value register.
|
void |
setReturnValueRegister(int value_var)
Sets the return value register.
|
String |
toString()
Returns a string description of this node.
|
<ArgType> void |
visitBy(NodeVisitor<ArgType> v,
ArgType a)
Visits this node with the given visitor.
|
check, getBlock, getDuplicateOf, getIndex, getSourceLocation, isArtificial, isDead, isRegistersDone, setArtificial, setBlock, setDead, setDuplicateOf, setIndex, setRegistersDonepublic ReturnNode(int value_reg,
SourceLocation location)
AbstractNode.NO_VALUE represents absent value (implicitly 'undefined').public boolean canThrowExceptions()
AbstractNodecanThrowExceptions in class AbstractNodepublic int getReturnValueRegister()
AbstractNode.NO_VALUE represents absent value (implicitly 'undefined').getReturnValueRegister in interface IReturnNodepublic void setReturnValueRegister(int value_var)
public String toString()
AbstractNodetoString in class AbstractNodepublic <ArgType> void visitBy(NodeVisitor<ArgType> v, ArgType a)
NodeCopyright © 2012 Aarhus University