summaryrefslogtreecommitdiff
path: root/yjit.c
diff options
context:
space:
mode:
authorNoah Gibbs <the.codefolio.guy@gmail.com>2022-07-28 16:45:08 +0100
committerTakashi Kokubun <takashikkbn@gmail.com>2022-08-24 10:42:45 -0700
commitb4be3c00c5737649166db676278fd28f768a5e3c (patch)
tree73ad75aa40351021832e44943a40a349172568d7 /yjit.c
parent0ad9cc16966c2e56f0fe7e5992edf76033d3a83f (diff)
add --yjit-dump-iseqs param (https://github.com/Shopify/ruby/pull/332)
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6278
Diffstat (limited to 'yjit.c')
-rw-r--r--yjit.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/yjit.c b/yjit.c
index 1a2f71a959..0dddcfdc5a 100644
--- a/yjit.c
+++ b/yjit.c
@@ -399,6 +399,18 @@ rb_str_bytesize(VALUE str)
return LONG2NUM(RSTRING_LEN(str));
}
+unsigned long
+rb_RSTRING_LEN(VALUE str)
+{
+ return RSTRING_LEN(str);
+}
+
+char *
+rb_RSTRING_PTR(VALUE str)
+{
+ return RSTRING_PTR(str);
+}
+
// This is defined only as a named struct inside rb_iseq_constant_body.
// By giving it a separate typedef, we make it nameable by rust-bindgen.
// Bindgen's temp/anon name isn't guaranteed stable.