projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #5444 from hifi/fix-tds-inputoutput
[mono.git]
/
mono
/
mini
/
jit.h
diff --git
a/mono/mini/jit.h
b/mono/mini/jit.h
index 65258e52b847c8d3c05df89f4c7b2234af3b993e..408fead304ef2f95073bbe518c329125f519ea24 100644
(file)
--- a/
mono/mini/jit.h
+++ b/
mono/mini/jit.h
@@
-1,4
+1,5
@@
-/*
+/**
+ * \file
* Author:
* Dietmar Maurer (dietmar@ximian.com)
*
* Author:
* Dietmar Maurer (dietmar@ximian.com)
*
@@
-33,6
+34,9
@@
mono_set_signal_chaining (mono_bool chain_signals);
MONO_API void
mono_set_crash_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);
MONO_API void
mono_jit_set_aot_only (mono_bool aot_only);
@@
-44,13
+48,28
@@
typedef enum {
MONO_AOT_MODE_NONE,
/* Enables normal AOT mode, equivalent to mono_jit_set_aot_only (false) */
MONO_AOT_MODE_NORMAL,
MONO_AOT_MODE_NONE,
/* Enables normal AOT mode, equivalent to mono_jit_set_aot_only (false) */
MONO_AOT_MODE_NORMAL,
- /* Enables hy
rb
id AOT mode, JIT can still be used for wrappers */
+ /* Enables hy
br
id 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_HYBRID,
/* Enables full AOT mode, JIT is disabled and not allowed,
* equivalent to mono_jit_set_aot_only (true) */
- MONO_AOT_MODE_FULL
+ MONO_AOT_MODE_FULL,
+ /* Same as full, but use only llvm compiled code */
+ MONO_AOT_MODE_LLVMONLY,
+ /* Uses Interpreter, JIT is disabled and not allowed,
+ * equivalent to "--full-aot --interpreter" */
+ MONO_AOT_MODE_INTERP
} MonoAotMode;
} 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).
/* Allow embedders to decide wherther to actually obey breakpoint instructions
* in specific methods (works for both break IL instructions and Debugger.Break ()
* method calls).
@@
-75,14
+94,6
@@
mono_jit_parse_options (int argc, char * argv[]);
MONO_API char* mono_get_runtime_build_info (void);
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 void *
-mono_aot_get_method (MonoDomain *domain, MonoMethod *method);
-
MONO_END_DECLS
#endif
MONO_END_DECLS
#endif