public class LIRNativeImageCodeCache extends NativeImageCodeCache
NativeImageCodeCache.MethodMetadataEncoder, NativeImageCodeCache.MethodMetadataEncoderFactory, NativeImageCodeCache.Optionscompilations, 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) |
NativeImage.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, writeConstantspublic LIRNativeImageCodeCache(Map<HostedMethod,org.graalvm.compiler.code.CompilationResult> compilations, NativeImageHeap imageHeap)
public int getCodeCacheSize()
getCodeCacheSize in class NativeImageCodeCachepublic void layoutMethods(org.graalvm.compiler.debug.DebugContext debug,
String imageName,
com.oracle.graal.pointsto.BigBang bb,
ForkJoinPool threadPool)
layoutMethods in class NativeImageCodeCachepublic void patchMethods(org.graalvm.compiler.debug.DebugContext debug,
RelocatableBuffer relocs,
com.oracle.objectfile.ObjectFile objectFile)
patchMethods in class NativeImageCodeCacherelocs - a relocation mappublic void writeCode(RelocatableBuffer buffer)
writeCode in class NativeImageCodeCachepublic NativeImage.NativeTextSectionImpl getTextSectionImpl(RelocatableBuffer buffer, com.oracle.objectfile.ObjectFile objectFile, NativeImageCodeCache codeCache)
getTextSectionImpl in class NativeImageCodeCachepublic List<com.oracle.objectfile.ObjectFile.Symbol> getSymbols(com.oracle.objectfile.ObjectFile objectFile, boolean onlyGlobal)
getSymbols in class NativeImageCodeCache