summaryrefslogtreecommitdiff
path: root/yjit/src/codegen.rs
diff options
context:
space:
mode:
Diffstat (limited to 'yjit/src/codegen.rs')
-rw-r--r--yjit/src/codegen.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs
index 473d464d52..1d62d74de0 100644
--- a/yjit/src/codegen.rs
+++ b/yjit/src/codegen.rs
@@ -2991,6 +2991,16 @@ fn gen_opt_empty_p(
gen_opt_send_without_block(jit, ctx, cb, ocb)
}
+fn gen_opt_succ(
+ jit: &mut JITState,
+ ctx: &mut Context,
+ cb: &mut CodeBlock,
+ ocb: &mut OutlinedCb,
+) -> CodegenStatus {
+ // Delegate to send, call the method on the recv
+ gen_opt_send_without_block(jit, ctx, cb, ocb)
+}
+
fn gen_opt_str_freeze(
jit: &mut JITState,
ctx: &mut Context,
@@ -5820,6 +5830,7 @@ fn get_gen_fn(opcode: VALUE) -> Option<InsnGenFn> {
OP_OPT_LTLT => Some(gen_opt_ltlt),
OP_OPT_NIL_P => Some(gen_opt_nil_p),
OP_OPT_EMPTY_P => Some(gen_opt_empty_p),
+ OP_OPT_SUCC => Some(gen_opt_succ),
OP_OPT_NOT => Some(gen_opt_not),
OP_OPT_SIZE => Some(gen_opt_size),
OP_OPT_LENGTH => Some(gen_opt_length),