public class RuntimeCodeInstaller extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
RuntimeCodeInstaller.RuntimeCodeInstallerPlatformHelper
Methods which are platform specific.
|
Modifier and Type | Field and Description |
---|---|
protected byte[] |
compiledBytes |
protected SharedRuntimeMethod |
method |
Modifier | Constructor and Description |
---|---|
protected |
RuntimeCodeInstaller(SharedRuntimeMethod method,
org.graalvm.compiler.code.CompilationResult compilation,
boolean testTrampolineJumps) |
Modifier and Type | Method and Description |
---|---|
protected org.graalvm.word.Pointer |
allocateCodeMemory(long size) |
protected static void |
doInstallPrepared(SharedMethod method,
CodeInfo codeInfo,
SubstrateInstalledCode installedCode) |
protected void |
doPrepareInstall(ReferenceAdjuster adjuster,
CodeInfo codeInfo) |
static void |
install(SharedRuntimeMethod method,
org.graalvm.compiler.code.CompilationResult compilation,
SubstrateInstalledCode installedCode)
Installs the code in the current isolate, in a single step.
|
static void |
install(SharedRuntimeMethod method,
org.graalvm.compiler.code.CompilationResult compilation,
SubstrateInstalledCode installedCode,
boolean testTrampolineJumps) |
protected void |
makeCodeMemoryReadOnly(org.graalvm.word.Pointer start,
long size) |
protected void |
makeDataSectionNX(org.graalvm.word.Pointer start,
long size) |
protected static RuntimeCodeInstaller.RuntimeCodeInstallerPlatformHelper |
platformHelper() |
protected void |
releaseCodeMemory(org.graalvm.word.Pointer start,
long size) |
protected static <E extends Throwable> |
rethrow(Throwable ex) |
protected final SharedRuntimeMethod method
protected byte[] compiledBytes
protected RuntimeCodeInstaller(SharedRuntimeMethod method, org.graalvm.compiler.code.CompilationResult compilation, boolean testTrampolineJumps)
public static void install(SharedRuntimeMethod method, org.graalvm.compiler.code.CompilationResult compilation, SubstrateInstalledCode installedCode)
public static void install(SharedRuntimeMethod method, org.graalvm.compiler.code.CompilationResult compilation, SubstrateInstalledCode installedCode, boolean testTrampolineJumps)
protected void doPrepareInstall(ReferenceAdjuster adjuster, CodeInfo codeInfo)
protected static void doInstallPrepared(SharedMethod method, CodeInfo codeInfo, SubstrateInstalledCode installedCode)
protected static <E extends Throwable> RuntimeException rethrow(Throwable ex) throws E extends Throwable
E extends Throwable
protected static RuntimeCodeInstaller.RuntimeCodeInstallerPlatformHelper platformHelper()
protected org.graalvm.word.Pointer allocateCodeMemory(long size)
protected void makeCodeMemoryReadOnly(org.graalvm.word.Pointer start, long size)
protected void makeDataSectionNX(org.graalvm.word.Pointer start, long size)
protected void releaseCodeMemory(org.graalvm.word.Pointer start, long size)