[runtime] Introduce new `mono_jit_set_aot_mode` public AOT API.
authorJoão Matos <joao@tritao.eu>
Fri, 15 May 2015 15:48:58 +0000 (16:48 +0100)
committerJoão Matos <joao@tritao.eu>
Fri, 15 May 2015 15:52:31 +0000 (16:52 +0100)
We're also deprecating `mono_jit_set_aot_only` which is a strictly on-off API and of limited value in the face of the new AOT modes.

mono/mini/driver.c
mono/mini/jit.h

index d1b13478e3a540ae95c93ecef6e130fe0bf995b5..eed837619ff1c635823d83824687031459c4389c 100644 (file)
@@ -2182,6 +2182,12 @@ mono_jit_set_aot_only (gboolean val)
        mono_aot_only = val;
 }
 
+void
+mono_jit_set_aot_mode (MonoAotMode mode)
+{
+       mono_aot_mode = mode;
+}
+
 /**
  * mono_jit_set_trace_options:
  * @options: string representing the trace options
index 65258e52b847c8d3c05df89f4c7b2234af3b993e..cbff1aaa36d171bee67b7cd5fe1bbb9e823cb044 100644 (file)
@@ -33,6 +33,9 @@ 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);
 
@@ -51,6 +54,9 @@ typedef enum {
        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).