Class JsrStmt
java.lang.Object
EDU.purdue.cs.bloat.tree.Node
EDU.purdue.cs.bloat.tree.Stmt
EDU.purdue.cs.bloat.tree.JumpStmt
EDU.purdue.cs.bloat.tree.JsrStmt
JsrStmt represents a jsr instruction that jumps to a subroutine.
Recall that a subroutine is used to implement the finally cause in exception
handlers. The ret instruction is used to return from a subroutine.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()follow()voidsub()voidvisit(TreeVisitor visitor) voidvisitForceChildren(TreeVisitor visitor) Visit the children of this node.Methods inherited from class JumpStmt
catchTargets, copyIntoMethods inherited from class Stmt
cleanupOnlyMethods inherited from class Node
block, cleanup, hasParent, key, parent, replaceWith, replaceWith, setKey, setParent, setValueNumber, toString, valueNumber, visitChildren, visitOnly
-
Constructor Details
-
JsrStmt
Constructor.- Parameters:
sub- Subroutine that this statement jumps to.follow- Basic Block following the jump statement.
-
-
Method Details
-
setFollow
-
follow
-
sub
-
visitForceChildren
Description copied from class:NodeVisit the children of this node. Not all Nodes will have children to visit.- Specified by:
visitForceChildrenin classNode
-
visit
-
clone
-