2 #include "interp/interp.h"
4 void mono_wasm_interp_to_native_trampoline (void *target_func
, InterpMethodArguments
*margs
);
5 void mono_sdb_single_step_trampoline (void);
8 mono_wasm_specific_trampoline (void)
14 mono_arch_create_specific_trampoline (gpointer arg1
, MonoTrampolineType tramp_type
, MonoDomain
*domain
, guint32
*code_len
)
16 return (gpointer
)mono_wasm_specific_trampoline
;
20 mono_arch_create_generic_trampoline (MonoTrampolineType tramp_type
, MonoTrampInfo
**info
, gboolean aot
)
26 mono_arch_create_rgctx_lazy_fetch_trampoline (guint32 slot
, MonoTrampInfo
**info
, gboolean aot
)
32 mono_arch_patch_plt_entry (guint8
*code
, gpointer
*got
, host_mgreg_t
*regs
, guint8
*addr
)
38 mono_arch_patch_callsite (guint8
*method_start
, guint8
*orig_code
, guint8
*addr
)
40 g_error ("mono_arch_patch_callsite");
44 mono_arch_get_unbox_trampoline (MonoMethod
*m
, gpointer addr
)
51 mono_arch_get_static_rgctx_trampoline (gpointer arg
, gpointer addr
)
58 mono_arch_get_interp_to_native_trampoline (MonoTrampInfo
**info
)
61 *info
= mono_tramp_info_create ("interp_to_native_trampoline", (guint8
*)mono_wasm_interp_to_native_trampoline
, 1, NULL
, NULL
);
62 return (gpointer
)mono_wasm_interp_to_native_trampoline
;
66 mono_arch_create_sdb_trampoline (gboolean single_step
, MonoTrampInfo
**info
, gboolean aot
)
72 name
= "sdb_single_step_trampoline";
73 code
= (guint8
*)mono_wasm_single_step_hit
;
75 name
= "sdb_breakpoint_trampoline";
76 code
= (guint8
*)mono_wasm_breakpoint_hit
;
80 *info
= mono_tramp_info_create (name
, code
, 1, NULL
, NULL
);
85 mono_arch_get_call_target (guint8
*code
)
87 g_error ("mono_arch_get_call_target");
91 * mono_arch_get_plt_info_offset:
93 * Return the PLT info offset belonging to the plt entry PLT_ENTRY.
96 mono_arch_get_plt_info_offset (guint8
*plt_entry
, host_mgreg_t
*regs
, guint8
*code
)
99 return *(guint32
*)(plt_entry
+ 6);
103 mono_arch_get_gsharedvt_arg_trampoline (MonoDomain
*domain
, gpointer arg
, gpointer addr
)
110 mono_arch_get_gsharedvt_trampoline (MonoTrampInfo
**info
, gboolean aot
)