public class HotSpotNativeFunctionHandle extends Object implements NativeFunctionHandle
Modifier and Type | Field and Description |
---|---|
private Class<?>[] |
argumentTypes |
private InstalledCode |
code |
private String |
name |
Constructor and Description |
---|
HotSpotNativeFunctionHandle(InstalledCode code,
String name,
Class<?>... argumentTypes) |
Modifier and Type | Method and Description |
---|---|
Object |
call(Object... args)
Calls the native function.
|
private boolean |
checkArgs(Object... args) |
String |
toString() |
private void |
traceCall(Object... args) |
private void |
traceResult(Object result) |
private final InstalledCode code
private final Class<?>[] argumentTypes
public HotSpotNativeFunctionHandle(InstalledCode code, String name, Class<?>... argumentTypes)
private void traceResult(Object result)
public Object call(Object... args)
NativeFunctionHandle
The caller is responsible for ensuring args
comply with the platform ABI (e.g. Unix AMD64 ABI). If the library
function has struct parameters, the fields of the struct must be passed as individual
arguments.
call
in interface NativeFunctionHandle
args
- the arguments that will be passed to the native function