public class ReturnNode extends Node
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.
|
java.lang.String |
toString()
Returns a string description of this node.
|
void |
visitBy(NodeVisitor v)
Visits this node with the given visitor.
|
check, clone, getBlock, getDuplicateOf, getImplicitAfterCall, getIndex, getSourceLocation, getThisOrDuplicateOf, isArtificial, isRegistersDone, setArtificial, setBlock, setDuplicateOf, setImplicitAfterCall, setIndex, setRegistersDone, setSourceLocationpublic 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').public void setReturnValueRegister(int value_var)
public java.lang.String toString()
AbstractNodetoString in class AbstractNodepublic void visitBy(NodeVisitor v)
NodeCopyright © 2009-2019 Aarhus University