diff options
author | Noah Gibbs <the.codefolio.guy@gmail.com> | 2022-07-28 16:45:08 +0100 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-08-24 10:42:45 -0700 |
commit | b4be3c00c5737649166db676278fd28f768a5e3c (patch) | |
tree | 73ad75aa40351021832e44943a40a349172568d7 /yjit.c | |
parent | 0ad9cc16966c2e56f0fe7e5992edf76033d3a83f (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.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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. |