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

public Class HotSpotCompiledCode

extends Object
implements CompiledCode
Class Inheritance
All Implemented Interfaces
jdk.vm.ci.code.CompiledCode
Known Direct Subclasses
jdk.vm.ci.hotspot.HotSpotCompiledNmethod
Imports
jdk.vm.ci.code.BytecodeFrame, .CompiledCode, .StackSlot, .VirtualObject, jdk.vm.ci.code.site.DataPatch, .Infopoint, .Site, jdk.vm.ci.meta.Assumptions.Assumption, .ResolvedJavaField, .ResolvedJavaMethod

A CompiledCode with additional HotSpot-specific information required for installing the code in HotSpot's code cache.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
protected final Assumptions.Assumption[]
assumptions

A list of Assumption this code relies on.

protected final HotSpotCompiledCode.Comment[]
comments

A list of comments that will be included in code dumps.

protected final byte[]
dataSection

The data section containing serialized constants for the emitted machine code.

protected final int
dataSectionAlignment

The minimum alignment of the data section.

protected final DataPatch[]
dataSectionPatches

A list of relocations in the dataSection.

protected final StackSlot
deoptRescueSlot

The deopt rescue slot.

protected final boolean
isImmutablePIC

A flag determining whether this code is immutable and position independent.

protected final ResolvedJavaMethod[]
methods

The list of the methods whose bytecodes were used as input to the compilation.

protected final String
name

The name of this compilation unit.

protected final Site[]
sites

A list of code annotations describing special sites in targetCode.

protected final byte[]
targetCode

The buffer containing the emitted machine code.

protected final int
targetCodeSize

The leading number of bytes in targetCode containing the emitted machine code.

protected final int
totalFrameSize

The total size of the stack frame of this compiled method.

Constructor Summary

AccessConstructor and Description
public
HotSpotCompiledCode(String name, byte[] targetCode, int targetCodeSize, Site[] sites, Assumptions.Assumption[] assumptions, ResolvedJavaMethod[] methods, HotSpotCompiledCode.Comment[] comments, byte[] dataSection, int dataSectionAlignment, DataPatch[] dataSectionPatches, boolean isImmutablePIC, int totalFrameSize, StackSlot deoptRescueSlot)

Method Summary

Modifier and TypeMethod and Description
public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

private boolean
validateFrames()

Ensure that all the frames passed into the VM are properly formatted with an empty or illegal slot following double word slots.

public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

assumptionsback to summary
protected final Assumptions.Assumption[] assumptions

A list of Assumption this code relies on.

commentsback to summary
protected final HotSpotCompiledCode.Comment[] comments

A list of comments that will be included in code dumps.

dataSectionback to summary
protected final byte[] dataSection

The data section containing serialized constants for the emitted machine code.

dataSectionAlignmentback to summary
protected final int dataSectionAlignment

The minimum alignment of the data section.

dataSectionPatchesback to summary
protected final DataPatch[] dataSectionPatches

A list of relocations in the dataSection.

deoptRescueSlotback to summary
protected final StackSlot deoptRescueSlot

The deopt rescue slot. Must be non-null if there is a safepoint in the method.

isImmutablePICback to summary
protected final boolean isImmutablePIC

A flag determining whether this code is immutable and position independent.

methodsback to summary
protected final ResolvedJavaMethod[] methods

The list of the methods whose bytecodes were used as input to the compilation. If null, then the compilation did not record method dependencies. Otherwise, the first element of this array is the root method of the compilation.

nameback to summary
protected final String name

The name of this compilation unit.

sitesback to summary
protected final Site[] sites

A list of code annotations describing special sites in targetCode.

targetCodeback to summary
protected final byte[] targetCode

The buffer containing the emitted machine code.

targetCodeSizeback to summary
protected final int targetCodeSize

The leading number of bytes in targetCode containing the emitted machine code.

totalFrameSizeback to summary
protected final int totalFrameSize

The total size of the stack frame of this compiled method.

Constructor Detail

HotSpotCompiledCodeback to summary
public HotSpotCompiledCode(String name, byte[] targetCode, int targetCodeSize, Site[] sites, Assumptions.Assumption[] assumptions, ResolvedJavaMethod[] methods, HotSpotCompiledCode.Comment[] comments, byte[] dataSection, int dataSectionAlignment, DataPatch[] dataSectionPatches, boolean isImmutablePIC, int totalFrameSize, StackSlot deoptRescueSlot)
Annotations
@SuppressFBWarnings:EI_EXPOSE_REP2
justification:caller transfers ownership of `sites`, `targetCode`, `comments`, `methods`, `dataSection`, `dataSectionPatches` and `assumptions`

Method Detail

getNameback to summary
public String getName()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
validateFramesback to summary
private boolean validateFrames()

Ensure that all the frames passed into the VM are properly formatted with an empty or illegal slot following double word slots.

verifyVirtualObjectback to summary
public static void verifyVirtualObject(VirtualObject v)
jdk.vm.ci.hotspot back to summary

public Class HotSpotCompiledCode.Comment

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public final int
public final String

Constructor Summary

AccessConstructor and Description
public
Comment(int pcOffset, String text)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pcOffsetback to summary
public final int pcOffset
textback to summary
public final String text

Constructor Detail

Commentback to summary
public Comment(int pcOffset, String text)