public class LIRNativeImageCodeCache extends NativeImageCodeCache
NativeImageCodeCache.Options
compilations, compilationsByStart, imageHeap, targetPlatform
Constructor and Description |
---|
LIRNativeImageCodeCache(Map<HostedMethod,org.graalvm.compiler.code.CompilationResult> compilations,
NativeImageHeap imageHeap) |
Modifier and Type | Method and Description |
---|---|
int |
getCodeCacheSize() |
List<com.oracle.objectfile.ObjectFile.Symbol> |
getSymbols(com.oracle.objectfile.ObjectFile objectFile,
boolean onlyGlobal) |
NativeBootImage.NativeTextSectionImpl |
getTextSectionImpl(RelocatableBuffer buffer,
com.oracle.objectfile.ObjectFile objectFile,
NativeImageCodeCache codeCache) |
void |
layoutMethods(org.graalvm.compiler.debug.DebugContext debug,
String imageName,
com.oracle.graal.pointsto.BigBang bb,
ForkJoinPool threadPool) |
void |
patchMethods(org.graalvm.compiler.debug.DebugContext debug,
RelocatableBuffer relocs,
com.oracle.objectfile.ObjectFile objectFile)
Patch references from code to other code and constant data.
|
void |
writeCode(RelocatableBuffer buffer) |
addConstantsToHeap, buildRuntimeMetadata, getAlignedConstantsSize, getCCInputFiles, getCompilationAtOffset, getCompilations, getConstantsSize, getFirstCompilation, layoutConstants, printCompilationResults, writeConstants
public LIRNativeImageCodeCache(Map<HostedMethod,org.graalvm.compiler.code.CompilationResult> compilations, NativeImageHeap imageHeap)
public int getCodeCacheSize()
getCodeCacheSize
in class NativeImageCodeCache
public void layoutMethods(org.graalvm.compiler.debug.DebugContext debug, String imageName, com.oracle.graal.pointsto.BigBang bb, ForkJoinPool threadPool)
layoutMethods
in class NativeImageCodeCache
public void patchMethods(org.graalvm.compiler.debug.DebugContext debug, RelocatableBuffer relocs, com.oracle.objectfile.ObjectFile objectFile)
patchMethods
in class NativeImageCodeCache
relocs
- a relocation mappublic void writeCode(RelocatableBuffer buffer)
writeCode
in class NativeImageCodeCache
public NativeBootImage.NativeTextSectionImpl getTextSectionImpl(RelocatableBuffer buffer, com.oracle.objectfile.ObjectFile objectFile, NativeImageCodeCache codeCache)
getTextSectionImpl
in class NativeImageCodeCache
public List<com.oracle.objectfile.ObjectFile.Symbol> getSymbols(com.oracle.objectfile.ObjectFile objectFile, boolean onlyGlobal)
getSymbols
in class NativeImageCodeCache