update rx (mobile builds).
[mono-project.git] / mono / mini / jit.h
blob080531b607606fb3cff37f9b19f1366bf77e3efb
1 /*
2 * Author:
3 * Dietmar Maurer (dietmar@ximian.com)
5 * (C) 2001, 2002, 2003 Ximian, Inc.
6 */
8 #ifndef _MONO_JIT_JIT_H_
9 #define _MONO_JIT_JIT_H_
11 #include <mono/metadata/appdomain.h>
13 MONO_BEGIN_DECLS
15 MonoDomain *
16 mono_jit_init (const char *file);
18 MonoDomain *
19 mono_jit_init_version (const char *root_domain_name, const char *runtime_version);
21 int
22 mono_jit_exec (MonoDomain *domain, MonoAssembly *assembly,
23 int argc, char *argv[]);
24 void
25 mono_jit_cleanup (MonoDomain *domain);
27 mono_bool
28 mono_jit_set_trace_options (const char* options);
30 void
31 mono_set_signal_chaining (mono_bool chain_signals);
33 void
34 mono_jit_set_aot_only (mono_bool aot_only);
36 /* Allow embedders to decide wherther to actually obey breakpoint instructions
37 * in specific methods (works for both break IL instructions and Debugger.Break ()
38 * method calls).
40 typedef enum {
41 /* the default is to always obey the breakpoint */
42 MONO_BREAK_POLICY_ALWAYS,
43 /* a nop is inserted instead of a breakpoint */
44 MONO_BREAK_POLICY_NEVER,
45 /* the breakpoint is executed only if the program has ben started under
46 * the debugger (that is if a debugger was attached at the time the method
47 * was compiled).
49 MONO_BREAK_POLICY_ON_DBG
50 } MonoBreakPolicy;
52 typedef MonoBreakPolicy (*MonoBreakPolicyFunc) (MonoMethod *method);
53 void mono_set_break_policy (MonoBreakPolicyFunc policy_callback);
55 void
56 mono_jit_parse_options (int argc, char * argv[]);
58 char* mono_get_runtime_build_info (void);
60 MONO_END_DECLS
62 #endif