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, setSourceLocation
public ReturnNode(int value_reg, SourceLocation location)
AbstractNode.NO_VALUE
represents absent value (implicitly 'undefined').public boolean canThrowExceptions()
AbstractNode
canThrowExceptions
in class AbstractNode
public int getReturnValueRegister()
AbstractNode.NO_VALUE
represents absent value (implicitly 'undefined').public void setReturnValueRegister(int value_var)
public java.lang.String toString()
AbstractNode
toString
in class AbstractNode
public void visitBy(NodeVisitor v)
Node
Copyright © 2009-2019 Aarhus University