Class ImpulseMethodHandleCompiler
java.lang.Object
org.impulsegraph.vm.ImpulseMethodHandleCompiler
-
Method Summary
Modifier and TypeMethodDescriptionstatic MethodHandlecompile(MemorySegment programSeg, long instructionCount) static MethodHandlecompile(MemorySegment programSeg, long instructionCount, List<String> stringPool) static JitDrivercompileDriver(MemorySegment programSeg, long instructionCount) static ObjectexecuteCompiled(JitDriver driver, ImpulseGraphSnapshot snapshot, Object input, Arena arena, List<String> stringPool, long instructionCount) static ObjectexecuteCompiled(JitDriver driver, ImpulseGraphSnapshot snapshot, Object input, Arena arena, List<String> stringPool, long instructionCount, MemorySegment inlineDataSeg) static intexecuteDecoded(MemorySegment programSeg, long instructionCount, VmHandlers.Instruction instr, VmQueryContext ctx, MemorySegment state, Object input, int pc) static intfallbackExecute(MemorySegment programSeg, long instructionCount, VmQueryContext ctx, MemorySegment state, Object input, int pc) static intskipHandler(VmQueryContext ctx, MemorySegment state, Object input, int currentPc) static intvoidWrapper(MethodHandle voidMh, int nextPc, VmQueryContext ctx, MemorySegment state, Object input, int currentPc)
-
Method Details
-
compileDriver
public static JitDriver compileDriver(MemorySegment programSeg, long instructionCount) throws Exception - Throws:
Exception
-
compile
-
compile
public static MethodHandle compile(MemorySegment programSeg, long instructionCount, List<String> stringPool) -
voidWrapper
public static int voidWrapper(MethodHandle voidMh, int nextPc, VmQueryContext ctx, MemorySegment state, Object input, int currentPc) throws Throwable - Throws:
Throwable
-
fallbackExecute
public static int fallbackExecute(MemorySegment programSeg, long instructionCount, VmQueryContext ctx, MemorySegment state, Object input, int pc) -
executeDecoded
public static int executeDecoded(MemorySegment programSeg, long instructionCount, VmHandlers.Instruction instr, VmQueryContext ctx, MemorySegment state, Object input, int pc) -
skipHandler
-
executeCompiled
-
executeCompiled
public static Object executeCompiled(JitDriver driver, ImpulseGraphSnapshot snapshot, Object input, Arena arena, List<String> stringPool, long instructionCount, MemorySegment inlineDataSeg)
-