11 #include "interp/interp.h"
16 wasm_restore_context (void)
18 g_error ("wasm_restore_context");
22 wasm_call_filter (void)
24 g_error ("wasm_call_filter");
28 wasm_throw_exception (void)
30 g_error ("wasm_throw_exception");
34 wasm_rethrow_exception (void)
36 g_error ("wasm_rethrow_exception");
40 wasm_throw_corlib_exception (void)
42 g_error ("wasm_throw_corlib_exception");
46 wasm_enter_icall_trampoline (void *target_func, InterpMethodArguments *margs)
48 g_error ("wasm_enter_icall_trampoline");
53 mono_aot_get_trampoline_full (const char *name, MonoTrampInfo **out_tinfo)
57 if (!strcmp (name, "restore_context"))
58 code = wasm_restore_context;
59 else if (!strcmp (name, "call_filter"))
60 code = wasm_call_filter;
61 else if (!strcmp (name, "throw_exception"))
62 code = wasm_throw_exception;
63 else if (!strcmp (name, "rethrow_exception"))
64 code = wasm_rethrow_exception;
65 else if (!strcmp (name, "throw_corlib_exception"))
66 code = wasm_throw_corlib_exception;
67 else if (!strcmp (name, "enter_icall_trampoline"))
68 code = wasm_enter_icall_trampoline;
73 MonoTrampInfo *tinfo = g_new0 (MonoTrampInfo, 1);
76 tinfo->name = g_strdup (name);
78 tinfo->unwind_ops = NULL;
79 tinfo->uw_info = NULL;
80 tinfo->uw_info_len = 0;
81 tinfo->owns_uw_info = FALSE;