public class CodeInfoQueryResult extends Object
CodeInfoTable
.Modifier and Type | Field and Description |
---|---|
static int |
EMPTY_REFERENCE_MAP
Marker value returned by
CodeInfoQueryResult.getReferenceMapIndex() when the reference map is empty for
the IP . |
protected long |
encodedFrameSize |
protected long |
exceptionOffset |
protected FrameInfoQueryResult |
frameInfo |
protected org.graalvm.nativeimage.c.function.CodePointer |
ip |
static int |
NO_EXCEPTION_OFFSET
Marker value returned by
CodeInfoQueryResult.getExceptionOffset() when no exception handler is
registered for the IP . |
protected static FrameInfoQueryResult |
NO_FRAME_INFO
Marker value of
CodeInfoQueryResult.getFrameInfo() when no frame information is available for the
IP . |
static int |
NO_REFERENCE_MAP
Marker value returned by
CodeInfoQueryResult.getReferenceMapIndex() when no reference map is registered
for the IP . |
protected long |
referenceMapIndex |
Constructor and Description |
---|
CodeInfoQueryResult() |
Modifier and Type | Method and Description |
---|---|
long |
getEncodedFrameSize() |
long |
getExceptionOffset()
Returns the exception handler offset, i.e., the IP difference between the regular return
address and the exception handler entry point, for the IP.
|
FrameInfoQueryResult |
getFrameInfo()
Stack frame information used, e.g., for deoptimization and printing of stack frames in debug
builds.
|
org.graalvm.nativeimage.c.function.CodePointer |
getIP()
Returns the instruction pointer that was queried.
|
long |
getReferenceMapIndex()
Index into the
CodeInfoAccess.getStackReferenceMapEncoding(CodeInfo) encoded
reference map} for the code. |
long |
getTotalFrameSize()
Returns the frame size of the method containing the IP.
|
static long |
getTotalFrameSize(long encodedFrameSize) |
boolean |
hasCalleeSavedRegisters()
Returns true if the method containing the IP has callee-saved registers.
|
static boolean |
hasCalleeSavedRegisters(long encodedFrameSize) |
boolean |
isEntryPoint()
Returns true if the method containing the IP is an entry point method.
|
static boolean |
isEntryPoint(long encodedFrameSize) |
public static final int NO_EXCEPTION_OFFSET
CodeInfoQueryResult.getExceptionOffset()
when no exception handler is
registered for the IP
.public static final int NO_REFERENCE_MAP
CodeInfoQueryResult.getReferenceMapIndex()
when no reference map is registered
for the IP
.public static final int EMPTY_REFERENCE_MAP
CodeInfoQueryResult.getReferenceMapIndex()
when the reference map is empty for
the IP
.protected static final FrameInfoQueryResult NO_FRAME_INFO
CodeInfoQueryResult.getFrameInfo()
when no frame information is available for the
IP
.protected org.graalvm.nativeimage.c.function.CodePointer ip
protected long encodedFrameSize
protected long exceptionOffset
protected long referenceMapIndex
protected FrameInfoQueryResult frameInfo
public org.graalvm.nativeimage.c.function.CodePointer getIP()
public long getEncodedFrameSize()
public long getTotalFrameSize()
public static long getTotalFrameSize(long encodedFrameSize)
public boolean isEntryPoint()
public static boolean isEntryPoint(long encodedFrameSize)
public boolean hasCalleeSavedRegisters()
public static boolean hasCalleeSavedRegisters(long encodedFrameSize)
public long getExceptionOffset()
public long getReferenceMapIndex()
CodeInfoAccess.getStackReferenceMapEncoding(CodeInfo)
encoded
reference map} for the code. Encoding is handled by CodeReferenceMapEncoder
, decoding
is handled by CodeReferenceMapDecoder
.public FrameInfoQueryResult getFrameInfo()