summaryrefslogtreecommitdiff
path: root/rjit.h
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-12 13:55:39 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-12 15:15:08 -0700
commit9cd5441d28002768d9f492140757652548b86727 (patch)
tree0ad4ac8e4c56c64d0ced398cdbdd8a3878d7f862 /rjit.h
parentbbd9221e46649cc0d620efe4542bb93ff89fcb47 (diff)
downloadruby-9cd5441d28002768d9f492140757652548b86727.tar.gz
RJIT: Implement --rjit-trace-exits
Diffstat (limited to 'rjit.h')
-rw-r--r--rjit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/rjit.h b/rjit.h
index 90b98323bc..0b92b5293f 100644
--- a/rjit.h
+++ b/rjit.h
@@ -32,6 +32,8 @@ struct rjit_options {
unsigned int exec_mem_size;
// Collect RJIT statistics
bool stats;
+ // Trace side exit locations
+ bool trace_exits;
// Enable disasm of all JIT code
bool dump_disasm;
// [experimental] Do not start RJIT until RJIT.resume is called.
@@ -69,6 +71,7 @@ extern void rb_rjit_collect_vm_usage_insn(int insn);
extern bool rb_rjit_enabled;
extern bool rb_rjit_stats_enabled;
+extern bool rb_rjit_trace_exits_enabled;
# else // USE_RJIT
@@ -88,6 +91,7 @@ static inline void rb_rjit_tracing_invalidate_all(rb_event_flag_t new_iseq_event
#define rb_rjit_enabled false
#define rb_rjit_call_p false
#define rb_rjit_stats_enabled false
+#define rb_rjit_trace_exits_enabled false
#define rb_rjit_call_threshold() UINT_MAX