Top Description Fields Constructors Methods
jdk.vm.ci.hotspot

pack-priv abstract Class HotSpotMethodDataAccessor

extends Object
Class Inheritance
Known Direct Subclasses
jdk.vm.ci.hotspot.HotSpotMethodData.NoMethodData, jdk.vm.ci.hotspot.HotSpotMethodData.BitData, jdk.vm.ci.hotspot.HotSpotMethodData.JumpData, jdk.vm.ci.hotspot.HotSpotMethodData.ArrayData, jdk.vm.ci.hotspot.HotSpotMethodData.UnknownProfileData
Imports
jdk.vm.ci.meta.JavaMethodProfile, .JavaTypeProfile, .ProfilingInfo, .TriState

Base class for accessing the different kinds of data in a HotSpot MethodData. This is similar to ProfilingInfo, but most methods require a HotSpotMethodData and the exact position within the method data.

Field Summary

Modifier and TypeField and Description
pack-priv final HotSpotVMConfig
pack-priv final HotSpotMethodData.VMState
pack-priv final int
pack-priv final int

Constructor Summary

AccessConstructor and Description
protected
HotSpotMethodDataAccessor(HotSpotMethodData.VMState state, int tag, int staticSize)

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract StringBuilder
pack-priv int

Returns:

an integer between 0 and Short#MAX_VALUE inclusive, or -1 if not supported
getBCI
(HotSpotMethodData data, int position)

Returns the BCI stored in the LayoutData header.

pack-priv double
protected int
getDynamicSize(HotSpotMethodData data, int position)

pack-priv TriState
getExceptionSeen(HotSpotMethodData data, int position)

pack-priv int
protected int
getFlags(HotSpotMethodData data, int position)

pack-priv JavaMethodProfile
getMethodProfile(HotSpotMethodData data, int position)

pack-priv TriState
getNullSeen(HotSpotMethodData data, int position)

pack-priv final int

Returns:

a value greater than 0
getSize
(HotSpotMethodData data, int position)

Computes the size for the specific data at the given position.

pack-priv double[]
pack-priv int

Returns:

tag stored in the LayoutData header
getTag
()

Returns the tag stored in the LayoutData header.

pack-priv JavaTypeProfile
getTypeProfile(HotSpotMethodData data, int position)

pack-priv static int
readTag(HotSpotVMConfig config, HotSpotMethodData data, int position)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

configback to summary
pack-priv final HotSpotVMConfig config
stateback to summary
pack-priv final HotSpotMethodData.VMState state
staticSizeback to summary
pack-priv final int staticSize
tagback to summary
pack-priv final int tag

Constructor Detail

HotSpotMethodDataAccessorback to summary
protected HotSpotMethodDataAccessor(HotSpotMethodData.VMState state, int tag, int staticSize)

Method Detail

appendToback to summary
pack-priv abstract StringBuilder appendTo(StringBuilder sb, HotSpotMethodData data, int pos)
getBCIback to summary
pack-priv int getBCI(HotSpotMethodData data, int position)

Returns the BCI stored in the LayoutData header.

Returns:int

an integer between 0 and Short#MAX_VALUE inclusive, or -1 if not supported

getBranchTakenProbabilityback to summary
pack-priv double getBranchTakenProbability(HotSpotMethodData data, int position)
getDynamicSizeback to summary
protected int getDynamicSize(HotSpotMethodData data, int position)
getExceptionSeenback to summary
pack-priv TriState getExceptionSeen(HotSpotMethodData data, int position)
getExecutionCountback to summary
pack-priv int getExecutionCount(HotSpotMethodData data, int position)
getFlagsback to summary
protected int getFlags(HotSpotMethodData data, int position)
getMethodProfileback to summary
pack-priv JavaMethodProfile getMethodProfile(HotSpotMethodData data, int position)
getNullSeenback to summary
pack-priv TriState getNullSeen(HotSpotMethodData data, int position)
getSizeback to summary
pack-priv final int getSize(HotSpotMethodData data, int position)

Computes the size for the specific data at the given position.

Returns:int

a value greater than 0

getSwitchProbabilitiesback to summary
pack-priv double[] getSwitchProbabilities(HotSpotMethodData data, int position)
getTagback to summary
pack-priv int getTag()

Returns the tag stored in the LayoutData header.

Returns:int

tag stored in the LayoutData header

getTypeProfileback to summary
pack-priv JavaTypeProfile getTypeProfile(HotSpotMethodData data, int position)
readTagback to summary
pack-priv static int readTag(HotSpotVMConfig config, HotSpotMethodData data, int position)