opt = INTERP_OPT_BBLOCKS;
else if (strncmp (arg, "tiering", 7) == 0)
opt = INTERP_OPT_TIERING;
- else if (strncmp (arg, "simd", 7) == 0)
+ else if (strncmp (arg, "simd", 4) == 0)
opt = INTERP_OPT_SIMD;
+#if HOST_BROWSER
+ else if (strncmp (arg, "jiterp", 6) == 0)
+ opt = INTERP_OPT_JITERPRETER;
+#endif
else if (strncmp (arg, "all", 3) == 0)
opt = ~INTERP_OPT_NONE;
INTERP_OPT_BBLOCKS = 8,
INTERP_OPT_TIERING = 16,
INTERP_OPT_SIMD = 32,
+#if HOST_BROWSER
+ INTERP_OPT_JITERPRETER = 64,
+#endif
INTERP_OPT_DEFAULT = INTERP_OPT_INLINE | INTERP_OPT_CPROP | INTERP_OPT_SUPER_INSTRUCTIONS | INTERP_OPT_BBLOCKS | INTERP_OPT_TIERING | INTERP_OPT_SIMD
+#if HOST_BROWSER
+ | INTERP_OPT_JITERPRETER
+#endif
};
typedef struct _InterpMethodArguments InterpMethodArguments;
interp_optimize_code (td);
interp_alloc_offsets (td);
#if HOST_BROWSER
- jiterp_insert_entry_points (rtm, td);
+ if (mono_interp_opt & INTERP_OPT_JITERPRETER)
+ jiterp_insert_entry_points (rtm, td);
#endif
}