|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--comp.Node | +--comp.ReturnNode
Return a value from a function.
Field Summary | |
(package private) ExprNode |
expr
|
Fields inherited from class comp.Node |
asm, globalScope, labelCount, strings |
Constructor Summary | |
ReturnNode(ExprNode e)
|
Method Summary | |
void |
asHTML(java.io.PrintStream out)
Process this node. |
java.lang.String |
codeGen(Scope scope,
RegBank bank)
Just places the value into the return register, and jumps to the function return label. |
java.lang.String |
toString()
|
Methods inherited from class comp.Node |
addDefs, addString, getLabel, lvalue, reset, rvalue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
ExprNode expr
Constructor Detail |
public ReturnNode(ExprNode e)
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String codeGen(Scope scope, RegBank bank)
codeGen
in class Node
public void asHTML(java.io.PrintStream out)
asHTML
in class Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |