Skip to content

Commit

Permalink
WIP - make methods private
Browse files Browse the repository at this point in the history
  • Loading branch information
JornVernee committed Feb 22, 2021
1 parent 48f189e commit b9ce2f5
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ public static void invoke(InterpretedHandler handler, long address) throws Throw
}
}

public static void invokeMoves(MemoryAddress buffer, MethodHandle leaf,
Binding.VMLoad[] argBindings, Binding.VMStore[] returnBindings,
ABIDescriptor abi, BufferLayout layout) throws Throwable {
private static void invokeMoves(MemoryAddress buffer, MethodHandle leaf,
Binding.VMLoad[] argBindings, Binding.VMStore[] returnBindings,
ABIDescriptor abi, BufferLayout layout) throws Throwable {
MemorySegment bufferBase = MemoryAddressImpl.ofLongUnchecked(buffer.toRawLongValue(), layout.size);

if (DEBUG) {
Expand Down Expand Up @@ -261,11 +261,11 @@ public static void invokeMoves(MemoryAddress buffer, MethodHandle leaf,
}
}

public static Object invokeInterpBindings(Object[] moves, MethodHandle leaf,
Map<VMStorage, Integer> argIndexMap,
Map<VMStorage, Integer> retIndexMap,
CallingSequence callingSequence,
long bufferCopySize) throws Throwable {
private static Object invokeInterpBindings(Object[] moves, MethodHandle leaf,
Map<VMStorage, Integer> argIndexMap,
Map<VMStorage, Integer> retIndexMap,
CallingSequence callingSequence,
long bufferCopySize) throws Throwable {
try (Allocator allocator = SharedUtils.makeAllocator(bufferCopySize)) {
/// Invoke interpreter, got array of high-level arguments back
Object[] args = new Object[callingSequence.methodType().parameterCount()];
Expand Down

0 comments on commit b9ce2f5

Please sign in to comment.