summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 0e70ded06d..9937a48221 100644
--- a/vm.c
+++ b/vm.c
@@ -403,7 +403,7 @@ jit_exec(rb_execution_context_t *ec)
}
}
else { // rjit_call_p
- if (body->total_calls == rjit_opts.call_threshold) {
+ if (body->total_calls == rb_rjit_call_threshold()) {
rb_rjit_compile(iseq);
}
if ((func = body->jit_func) == 0) {
@@ -414,6 +414,12 @@ jit_exec(rb_execution_context_t *ec)
// Call the JIT code
return func(ec, ec->cfp); // SystemV x64 calling convention: ec -> RDI, cfp -> RSI
}
+#else
+static inline VALUE
+jit_exec(rb_execution_context_t *ec)
+{
+ return Qundef;
+}
#endif
#include "vm_insnhelper.c"