org.jikesrvm.compilers.opt.inlining
Class CallSiteTree

java.lang.Object
  extended by org.jikesrvm.compilers.opt.util.Tree
      extended by 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

Constructor Summary
CallSiteTree()
           
 
Method Summary
 CallSiteTreeNode addLocation(InlineSequence seq)
          Given an existing call site tree representing a method, add a new inlined call to it.
 CallSiteTreeNode find(InlineSequence seq)
          Given an inline sequence representing an inlined call site, find the corresponding call site tree node.
 
Methods inherited from class org.jikesrvm.compilers.opt.util.Tree
elements, getBottomUpEnumerator, getRoot, getTopDownEnumerator, isEmpty, numberOfNodes, setRoot, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CallSiteTree

public CallSiteTree()
Method Detail

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