public class NativeImageCodeCache extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NativeImageCodeCache.Options |
| Modifier and Type | Field and Description |
|---|---|
static int |
CODE_ALIGNMENT |
| Constructor and Description |
|---|
NativeImageCodeCache(Map<HostedMethod,org.graalvm.compiler.code.CompilationResult> compilations,
NativeImageHeap imageHeap) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConstantsToHeap() |
int |
getAlignedConstantsSize() |
int |
getCodeCacheSize() |
org.graalvm.compiler.code.CompilationResult |
getCompilationAtOffset(int offset) |
Map<HostedMethod,org.graalvm.compiler.code.CompilationResult> |
getCompilations() |
int |
getConstantsSize() |
void |
layoutConstants() |
void |
layoutMethods(org.graalvm.compiler.debug.DebugContext debug) |
void |
patchMethods(RelocatableBuffer relocs)
Patch references from code to other code and constant data.
|
void |
printCompilationResults() |
void |
writeCode(RelocatableBuffer buffer) |
void |
writeConstants(RelocatableBuffer buffer) |
public static final int CODE_ALIGNMENT
public NativeImageCodeCache(Map<HostedMethod,org.graalvm.compiler.code.CompilationResult> compilations, NativeImageHeap imageHeap)
public int getCodeCacheSize()
public int getConstantsSize()
public int getAlignedConstantsSize()
public org.graalvm.compiler.code.CompilationResult getCompilationAtOffset(int offset)
public void layoutMethods(org.graalvm.compiler.debug.DebugContext debug)
public void layoutConstants()
public void addConstantsToHeap()
public void patchMethods(RelocatableBuffer relocs)
relocs - a relocation mappublic void writeConstants(RelocatableBuffer buffer)
public void writeCode(RelocatableBuffer buffer)
public Map<HostedMethod,org.graalvm.compiler.code.CompilationResult> getCompilations()
public void printCompilationResults()