public abstract class OptEncodedCallSiteTree extends Object
(<callerMID, bcIndex, calleeMID>): <A, 12, B>, <A,14,C>, <A,16,D>, < B,3,E>, < B,5,F >, <C,10,G>, <G,20,H>, <H,30,I>Then the
OptEncodedCallSiteTree
would be:
-1, A, -2, 12, B, 14, C, 16, D, -6, 3, E, 5, F, -9, 10, G, -2, 20 H -2 30 I
Constructor and Description |
---|
OptEncodedCallSiteTree() |
Modifier and Type | Method and Description |
---|---|
static boolean |
edgePresent(int desiredCaller,
int desiredBCIndex,
int desiredCallee,
int[] encoding) |
static int |
getByteCodeOffset(int entryOffset,
int[] encoding) |
static int[] |
getEncoding(CallSiteTree tree) |
(package private) static int |
getEncoding(CallSiteTreeNode current,
int offset,
int parent,
int[] encoding) |
static int |
getMethodID(int entryOffset,
int[] encoding) |
static int |
getParent(int index,
int[] encodedTree) |
(package private) static void |
setMethodID(int entryOffset,
int[] encoding,
int methodID) |
public OptEncodedCallSiteTree()
public static int getMethodID(int entryOffset, int[] encoding)
static void setMethodID(int entryOffset, int[] encoding, int methodID)
public static int getByteCodeOffset(int entryOffset, int[] encoding)
public static int[] getEncoding(CallSiteTree tree)
static int getEncoding(CallSiteTreeNode current, int offset, int parent, int[] encoding)
public static int getParent(int index, int[] encodedTree)
public static boolean edgePresent(int desiredCaller, int desiredBCIndex, int desiredCallee, int[] encoding)