[interp] Fix DEBUG_INTERP build (#16057)
[mono-project.git] / mono / mini / arch-stubs.c
blobeeb1d84a2e2719a382225629d54366bc894f22f6
1 /**
2 * \file
3 */
5 #include "mini.h"
7 /* Dummy versions of some arch specific functions to avoid ifdefs at call sites */
9 #ifndef MONO_ARCH_GSHAREDVT_SUPPORTED
11 gboolean
12 mono_arch_gsharedvt_sig_supported (MonoMethodSignature *sig)
14 return FALSE;
17 gpointer
18 mono_arch_get_gsharedvt_call_info (gpointer addr, MonoMethodSignature *normal_sig, MonoMethodSignature *gsharedvt_sig, gboolean gsharedvt_in, gint32 vcall_offset, gboolean calli)
20 g_assert_not_reached ();
21 return NULL;
24 gpointer
25 mono_arch_get_gsharedvt_arg_trampoline (MonoDomain *domain, gpointer arg, gpointer addr)
27 g_assert_not_reached ();
28 return NULL;
31 gpointer
32 mono_arch_get_gsharedvt_trampoline (MonoTrampInfo **info, gboolean aot)
34 g_assert_not_reached ();
35 return NULL;
38 #endif
40 #ifndef MONO_ARCH_HAVE_DECOMPOSE_OPTS
41 void
42 mono_arch_decompose_opts (MonoCompile *cfg, MonoInst *ins)
45 #endif
47 #ifndef MONO_ARCH_HAVE_OPCODE_NEEDS_EMULATION
48 gboolean
49 mono_arch_opcode_needs_emulation (MonoCompile *cfg, int opcode)
51 return TRUE;
53 #endif
55 #ifndef MONO_ARCH_HAVE_DECOMPOSE_LONG_OPTS
56 void
57 mono_arch_decompose_long_opts (MonoCompile *cfg, MonoInst *ins)
60 #endif
62 #ifndef MONO_ARCH_INTERPRETER_SUPPORTED
64 gpointer
65 mono_arch_get_interp_to_native_trampoline (MonoTrampInfo **info)
67 g_assert_not_reached ();
68 return NULL;
71 gpointer
72 mono_arch_get_native_to_interp_trampoline (MonoTrampInfo **info)
74 g_assert_not_reached ();
75 return NULL;
78 void
79 mono_arch_undo_ip_adjustment (MonoContext *context)
81 g_assert_not_reached ();
84 void
85 mono_arch_do_ip_adjustment (MonoContext *context)
87 g_assert_not_reached ();
90 #endif
92 #ifndef MONO_ARCH_HAVE_EXCEPTIONS_INIT
94 void
95 mono_arch_exceptions_init (void)
99 #endif
101 #if defined (DISABLE_JIT) && !defined (HOST_WASM)
102 gpointer
103 mono_arch_get_restore_context (MonoTrampInfo **info, gboolean aot)
105 g_assert_not_reached ();
106 return NULL;
109 gpointer
110 mono_arch_get_call_filter (MonoTrampInfo **info, gboolean aot)
112 g_assert_not_reached ();
113 return NULL;
116 gpointer
117 mono_arch_get_throw_exception (MonoTrampInfo **info, gboolean aot)
119 g_assert_not_reached ();
120 return NULL;
123 gpointer
124 mono_arch_get_rethrow_exception (MonoTrampInfo **info, gboolean aot)
126 g_assert_not_reached ();
127 return NULL;
130 gpointer
131 mono_arch_get_rethrow_preserve_exception (MonoTrampInfo **info, gboolean aot)
133 g_assert_not_reached ();
134 return NULL;
137 gpointer
138 mono_arch_get_throw_corlib_exception (MonoTrampInfo **info, gboolean aot)
140 g_assert_not_reached ();
141 return NULL;
144 #endif /* DISABLE_JIT */