X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fjit.h;h=cbff1aaa36d171bee67b7cd5fe1bbb9e823cb044;hb=46c4f4e6587b08ccc6a086f6c422acf9e4f24856;hp=e9315ba257ad2ec9169a722b3cf739256c41886e;hpb=fe15af27f184fd043d1c8129b8c56a4f94125c89;p=mono.git diff --git a/mono/mini/jit.h b/mono/mini/jit.h index e9315ba257a..cbff1aaa36d 100644 --- a/mono/mini/jit.h +++ b/mono/mini/jit.h @@ -33,9 +33,30 @@ mono_set_signal_chaining (mono_bool chain_signals); MONO_API void mono_set_crash_chaining (mono_bool chain_signals); +/** + * This function is deprecated, use mono_jit_set_aot_mode instead. + */ MONO_API void mono_jit_set_aot_only (mono_bool aot_only); +/** + * Allows control over our AOT (Ahead-of-time) compilation mode. + */ +typedef enum { + /* Disables AOT mode */ + MONO_AOT_MODE_NONE, + /* Enables normal AOT mode, equivalent to mono_jit_set_aot_only (false) */ + MONO_AOT_MODE_NORMAL, + /* Enables hyrbid AOT mode, JIT can still be used for wrappers */ + MONO_AOT_MODE_HYBRID, + /* Enables full AOT mode, JIT is disabled and not allowed, + * equivalent to mono_jit_set_aot_only (true) */ + MONO_AOT_MODE_FULL +} MonoAotMode; + +MONO_API void +mono_jit_set_aot_mode (MonoAotMode mode); + /* Allow embedders to decide wherther to actually obey breakpoint instructions * in specific methods (works for both break IL instructions and Debugger.Break () * method calls).