X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fjit.h;h=3a91c13f0d56369aeee04453a39dfd3e1e577514;hb=HEAD;hp=ed5eca5248beb4e1d7bff51a183720e7cc3e2498;hpb=478db45ebddf19a2d13100a1024d40f57eeb7385;p=mono.git diff --git a/mono/mini/jit.h b/mono/mini/jit.h index ed5eca5248b..3a91c13f0d5 100644 --- a/mono/mini/jit.h +++ b/mono/mini/jit.h @@ -1,4 +1,5 @@ -/* +/** + * \file * Author: * Dietmar Maurer (dietmar@ximian.com) * @@ -53,12 +54,24 @@ typedef enum { * equivalent to mono_jit_set_aot_only (true) */ MONO_AOT_MODE_FULL, /* Same as full, but use only llvm compiled code */ - MONO_AOT_MODE_LLVMONLY + MONO_AOT_MODE_LLVMONLY, + /* Uses Interpreter, JIT is disabled and not allowed, + * equivalent to "--full-aot --interpreter" */ + MONO_AOT_MODE_INTERP, + /* Same as INTERP, but use only llvm compiled code */ + MONO_AOT_MODE_INTERP_LLVMONLY, } MonoAotMode; MONO_API void mono_jit_set_aot_mode (MonoAotMode mode); +/* + * Returns whether the runtime was invoked for the purpose of AOT-compiling an + * assembly, i.e. no managed code will run. + */ +MONO_API mono_bool +mono_jit_aot_compiling (void); + /* Allow embedders to decide wherther to actually obey breakpoint instructions * in specific methods (works for both break IL instructions and Debugger.Break () * method calls). @@ -83,14 +96,6 @@ mono_jit_parse_options (int argc, char * argv[]); MONO_API char* mono_get_runtime_build_info (void); -/* The following APIs are not stable. Avoid if possible. */ - -MONO_API MonoJitInfo * -mono_get_jit_info_from_method (MonoDomain *domain, MonoMethod *method); - -MONO_API MONO_RT_EXTERNAL_ONLY void * -mono_aot_get_method (MonoDomain *domain, MonoMethod *method); - MONO_END_DECLS #endif