Search in sources :

Example 1 with NativeTruffleEnv

use of com.oracle.svm.truffle.nfi.NativeAPI.NativeTruffleEnv in project graal by oracle.

the class Target_com_oracle_truffle_nfi_impl_NFIContext method initializeNativeEnv.

@Substitute
private static long initializeNativeEnv(long context) {
    NativeTruffleContext ctx = WordFactory.pointer(context);
    NativeTruffleEnv env = UnmanagedMemory.malloc(SizeOf.get(NativeTruffleEnv.class));
    NFIInitialization.initializeEnv(env, ctx);
    return env.rawValue();
}
Also used : NativeTruffleEnv(com.oracle.svm.truffle.nfi.NativeAPI.NativeTruffleEnv) NativeTruffleContext(com.oracle.svm.truffle.nfi.NativeAPI.NativeTruffleContext) Substitute(com.oracle.svm.core.annotate.Substitute)

Aggregations

Substitute (com.oracle.svm.core.annotate.Substitute)1 NativeTruffleContext (com.oracle.svm.truffle.nfi.NativeAPI.NativeTruffleContext)1 NativeTruffleEnv (com.oracle.svm.truffle.nfi.NativeAPI.NativeTruffleEnv)1