summaryrefslogtreecommitdiff
path: root/yjit.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-18 23:33:10 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-18 23:35:42 -0700
commit32e0c97dfaa7973032e6ab93260be8eb4ad1458a (patch)
tree267a6f988cd4d3f1922f1a27c65114bbfd4c82e5 /yjit.c
parent106cca5111981ce30bb6f4534ff72e8c09ace162 (diff)
downloadruby-32e0c97dfaa7973032e6ab93260be8eb4ad1458a.tar.gz
RJIT: Optimize String#bytesize
Diffstat (limited to 'yjit.c')
-rw-r--r--yjit.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/yjit.c b/yjit.c
index 85401318ad..d0d8ae463a 100644
--- a/yjit.c
+++ b/yjit.c
@@ -442,13 +442,6 @@ rb_iseq_opcode_at_pc(const rb_iseq_t *iseq, const VALUE *pc)
return rb_vm_insn_addr2opcode((const void *)at_pc);
}
-// used by jit_rb_str_bytesize in codegen.rs
-VALUE
-rb_str_bytesize(VALUE str)
-{
- return LONG2NUM(RSTRING_LEN(str));
-}
-
unsigned long
rb_RSTRING_LEN(VALUE str)
{