public class EncodedGraph extends Object
StructuredGraph encoded in a compact binary representation as a byte[] array. See
GraphEncoder for a description of the encoding format. Use GraphDecoder for
decoding.| Modifier and Type | Class and Description |
|---|---|
static class |
EncodedGraph.EncodedNodeReference
A marker for a node in an encoded graph.
|
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
nodeStartOffsets
The "table of contents" of the encoded graph, i.e., the mapping from orderId numbers to the
offset in the encoded byte[] array.
|
protected Object[] |
objects |
| Constructor and Description |
|---|
EncodedGraph(byte[] encoding,
int startOffset,
Object[] objects,
NodeClass<?>[] types,
Assumptions assumptions,
List<ResolvedJavaMethod> inlinedMethods,
boolean hasUnsafeAccess,
boolean trackNodeSourcePosition) |
EncodedGraph(byte[] encoding,
int startOffset,
Object[] objects,
NodeClass<?>[] types,
StructuredGraph sourceGraph) |
| Modifier and Type | Method and Description |
|---|---|
Assumptions |
getAssumptions() |
byte[] |
getEncoding() |
List<ResolvedJavaMethod> |
getInlinedMethods() |
NodeClass<?>[] |
getNodeClasses() |
int |
getNumObjects() |
Object |
getObject(int i) |
Object[] |
getObjects() |
int |
getStartOffset() |
boolean |
hasUnsafeAccess() |
boolean |
isCallToOriginal(ResolvedJavaMethod callTarget) |
boolean |
trackNodeSourcePosition() |
protected final Object[] objects
protected int[] nodeStartOffsets
public EncodedGraph(byte[] encoding,
int startOffset,
Object[] objects,
NodeClass<?>[] types,
StructuredGraph sourceGraph)
public byte[] getEncoding()
public int getStartOffset()
public Object[] getObjects()
public int getNumObjects()
public Object getObject(int i)
public NodeClass<?>[] getNodeClasses()
public Assumptions getAssumptions()
public List<ResolvedJavaMethod> getInlinedMethods()
public boolean trackNodeSourcePosition()
public boolean hasUnsafeAccess()
public boolean isCallToOriginal(ResolvedJavaMethod callTarget)