[interp] Fix stub_get_resume_state write to out parameter (#16145)
[mono-project.git] / mono / mini / interp-stubs.c
blob2e3e842bc44577dbeacd1ac596738a298bb5f3f1
1 #include <config.h>
3 #include "interp/interp.h"
5 /* interpreter callback stubs */
7 static MonoJitInfo*
8 stub_find_jit_info (MonoDomain *domain, MonoMethod *method)
10 return NULL;
13 static void
14 stub_set_breakpoint (MonoJitInfo *jinfo, gpointer ip)
16 g_assert_not_reached ();
19 static void
20 stub_clear_breakpoint (MonoJitInfo *jinfo, gpointer ip)
22 g_assert_not_reached ();
25 static MonoJitInfo*
26 stub_frame_get_jit_info (MonoInterpFrameHandle frame)
28 g_assert_not_reached ();
29 return NULL;
32 static gpointer
33 stub_frame_get_ip (MonoInterpFrameHandle frame)
35 g_assert_not_reached ();
36 return NULL;
39 static gpointer
40 stub_frame_get_arg (MonoInterpFrameHandle frame, int pos)
42 g_assert_not_reached ();
43 return NULL;
46 static gpointer
47 stub_frame_get_local (MonoInterpFrameHandle frame, int pos)
49 g_assert_not_reached ();
50 return NULL;
53 static gpointer
54 stub_frame_get_this (MonoInterpFrameHandle frame)
56 g_assert_not_reached ();
57 return NULL;
60 static MonoInterpFrameHandle
61 stub_frame_get_parent (MonoInterpFrameHandle frame)
63 g_assert_not_reached ();
64 return NULL;
67 static gpointer
68 stub_frame_get_res (MonoInterpFrameHandle frame)
70 g_assert_not_reached ();
71 return NULL;
74 static void
75 stub_start_single_stepping (void)
79 static void
80 stub_stop_single_stepping (void)
84 static void
85 stub_set_resume_state (MonoJitTlsData *jit_tls, MonoException *ex, MonoJitExceptionInfo *ei, MonoInterpFrameHandle interp_frame, gpointer handler_ip)
87 g_assert_not_reached ();
90 static void
91 stub_get_resume_state (const MonoJitTlsData *jit_tls, gboolean *has_resume_state, MonoInterpFrameHandle *interp_frame, gpointer *handler_ip)
93 *has_resume_state = FALSE;
96 static gboolean
97 stub_run_finally (StackFrameInfo *frame, int clause_index, gpointer handler_ip, gpointer handler_ip_end)
99 g_assert_not_reached ();
102 static gboolean
103 stub_run_filter (StackFrameInfo *frame, MonoException *ex, int clause_index, gpointer handler_ip, gpointer handler_ip_end)
105 g_assert_not_reached ();
106 return FALSE;
109 static void
110 stub_frame_iter_init (MonoInterpStackIter *iter, gpointer interp_exit_data)
112 g_assert_not_reached ();
115 static gboolean
116 stub_frame_iter_next (MonoInterpStackIter *iter, StackFrameInfo *frame)
118 g_assert_not_reached ();
119 return FALSE;
122 static gpointer
123 stub_create_method_pointer (MonoMethod *method, gboolean compile, MonoError *error)
125 g_assert_not_reached ();
126 return NULL;
129 static MonoFtnDesc*
130 stub_create_method_pointer_llvmonly (MonoMethod *method, gboolean compile, MonoError *error)
132 g_assert_not_reached ();
133 return NULL;
136 static MonoObject*
137 stub_runtime_invoke (MonoMethod *method, void *obj, void **params, MonoObject **exc, MonoError *error)
139 g_assert_not_reached ();
140 return NULL;
143 static void
144 stub_init_delegate (MonoDelegate *del, MonoError *error)
146 g_assert_not_reached ();
149 static gpointer
150 stub_get_remoting_invoke (MonoMethod *method, gpointer imethod, MonoError *error)
152 g_assert_not_reached ();
153 return NULL;
156 static void
157 stub_delegate_ctor (MonoObjectHandle this_obj, MonoObjectHandle target, gpointer addr, MonoError *error)
159 g_assert_not_reached ();
162 static void
163 stub_entry_from_trampoline (gpointer ccontext, gpointer imethod)
165 g_assert_not_reached ();
168 static void
169 stub_to_native_trampoline (gpointer addr, gpointer ccontext)
171 g_assert_not_reached ();
174 static void
175 stub_frame_arg_to_data (MonoInterpFrameHandle frame, MonoMethodSignature *sig, int index, gpointer data)
177 g_assert_not_reached ();
180 static void
181 stub_data_to_frame_arg (MonoInterpFrameHandle frame, MonoMethodSignature *sig, int index, gpointer data)
183 g_assert_not_reached ();
186 static gpointer
187 stub_frame_arg_to_storage (MonoInterpFrameHandle frame, MonoMethodSignature *sig, int index)
189 g_assert_not_reached ();
190 return NULL;
193 static void
194 stub_frame_arg_set_storage (MonoInterpFrameHandle frame, MonoMethodSignature *sig, int index, gpointer storage)
196 g_assert_not_reached ();
199 #undef MONO_EE_CALLBACK
200 #define MONO_EE_CALLBACK(ret, name, sig) stub_ ## name,
202 static const MonoEECallbacks mono_interp_stub_callbacks = {
203 MONO_EE_CALLBACKS
206 void
207 mono_interp_stub_init (void)
209 if (mini_get_interp_callbacks ())
210 /* already initialized */
211 return;
213 mini_install_interp_callbacks (&mono_interp_stub_callbacks);