org.jikesrvm.compilers.opt.inlining
Class CallSiteTree
java.lang.Object
org.jikesrvm.compilers.opt.util.Tree
org.jikesrvm.compilers.opt.inlining.CallSiteTree
public class CallSiteTree
- extends Tree
This class represents the set of inlined method calls that are
contained within a single method code body. The tree is consists
of nodes each of which contains an InlineSequence object
representing an inlined method call. The tree is rooted at the
inline sequence object representing the top level method, and the
inlined calls appear as children of that root, and so on
recursively. These trees are used to construct the persistent
encoding of inlining information, stored in the
OptMachineCodeMap.
- See Also:
InlineSequence
,
CallSiteTreeNode
,
OptEncodedCallSiteTree
,
OptMachineCodeMap
CallSiteTree
public CallSiteTree()
addLocation
public CallSiteTreeNode addLocation(InlineSequence seq)
- Given an existing call site tree representing a method, add a new
inlined call to it.
- Parameters:
seq
- a call to add to the call site tree
- Returns:
- the call site tree node corresponding to the new call site
find
public CallSiteTreeNode find(InlineSequence seq)
- Given an inline sequence representing an inlined call site, find
the corresponding call site tree node.
- Parameters:
seq
- an inlined call site
- Returns:
- the corresponding call site tree node