summaryrefslogtreecommitdiff
path: root/mjit.h
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-09-06 13:31:07 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2022-09-06 15:52:02 +0900
commitb726c06e7eeafff52e368179dbe79a11b1aff975 (patch)
tree1e3c8cf213014d8d51d034a24fcf46bd1e983605 /mjit.h
parent341b40bd0c2228a7759852b82af1fb11c15751e6 (diff)
Allow hooking a different method after --mjit=pause
The interface is similar to RubyVM::ISeq.translate; it's used if defined. Same as --mjit=pause, this is an undocumented feature for MJIT experiments.
Diffstat (limited to 'mjit.h')
-rw-r--r--mjit.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mjit.h b/mjit.h
index 130ab5abae..ed696b3ff7 100644
--- a/mjit.h
+++ b/mjit.h
@@ -59,8 +59,10 @@ struct mjit_options {
// Maximal permitted number of iseq JIT codes in a MJIT memory
// cache.
int max_cache_size;
- // [experimental] If true, do not start MJIT until MJIT.resume is called.
+ // [experimental] Do not start MJIT until MJIT.resume is called.
bool pause;
+ // [experimental] Call custom RubyVM::MJIT.compile instead of MJIT.
+ bool custom;
};
// State of optimization switches