Skip to content

Commit

Permalink
[YARP] Remove minor instances of rb_intern (#8497)
Browse files Browse the repository at this point in the history
  • Loading branch information
jemmaissroff committed Sep 22, 2023
1 parent ea5f8e1 commit 7424143
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yarp/yarp_compiler.c
Expand Up @@ -1427,7 +1427,7 @@ yp_compile_node(rb_iseq_t *iseq, const yp_node_t *node, LINK_ANCHOR *const ret,
ADD_INSN1(ret, &dummy_line_node, concatstrings, INT2FIX((int)(parts_size)));
}

ADD_SEND_WITH_FLAG(ret, &dummy_line_node, rb_intern("`"), INT2NUM(1), INT2FIX(VM_CALL_FCALL | VM_CALL_ARGS_SIMPLE));
ADD_SEND_WITH_FLAG(ret, &dummy_line_node, idBackquote, INT2NUM(1), INT2FIX(VM_CALL_FCALL | VM_CALL_ARGS_SIMPLE));
YP_POP_IF_POPPED;
return;
}
Expand Down Expand Up @@ -2016,7 +2016,7 @@ yp_compile_node(rb_iseq_t *iseq, const yp_node_t *node, LINK_ANCHOR *const ret,

YP_COMPILE(undef_node->names.nodes[index]);

ADD_SEND(ret, &dummy_line_node, rb_intern("core#undef_method"), INT2NUM(2));
ADD_SEND(ret, &dummy_line_node, id_core_undef_method, INT2NUM(2));

if (index < undef_node->names.size - 1)
ADD_INSN(ret, &dummy_line_node, pop);
Expand Down Expand Up @@ -2056,7 +2056,7 @@ yp_compile_node(rb_iseq_t *iseq, const yp_node_t *node, LINK_ANCHOR *const ret,
yp_x_string_node_t *xstring_node = (yp_x_string_node_t *) node;
ADD_INSN(ret, &dummy_line_node, putself);
ADD_INSN1(ret, &dummy_line_node, putobject, parse_string(&xstring_node->unescaped));
ADD_SEND_WITH_FLAG(ret, &dummy_line_node, rb_intern("`"), INT2NUM(1), INT2FIX(VM_CALL_FCALL | VM_CALL_ARGS_SIMPLE));
ADD_SEND_WITH_FLAG(ret, &dummy_line_node, idBackquote, INT2NUM(1), INT2FIX(VM_CALL_FCALL | VM_CALL_ARGS_SIMPLE));

YP_POP_IF_POPPED;
return;
Expand Down

0 comments on commit 7424143

Please sign in to comment.