summaryrefslogtreecommitdiff
path: root/vm_exec.h
diff options
context:
space:
mode:
-rw-r--r--vm_exec.h10
1 files changed, 10 insertions, 0 deletions
@@ -169,10 +169,20 @@ default: \
#define THROW_EXCEPTION(exc) return (VALUE)(exc)
#endif
#define JIT_EXEC(ec, val) do { \
rb_jit_func_t func; \
if (val == Qundef && (func = jit_compile(ec))) { \
val = func(ec, ec->cfp); \
if (ec->tag->state) THROW_EXCEPTION(val); \
} \
} while (0)