mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
add --yjit-dump-iseqs param (https://github.com/Shopify/ruby/pull/332)
This commit is contained in:
parent
0ad9cc1696
commit
b4be3c00c5
Notes:
git
2022-08-25 02:43:13 +09:00
7 changed files with 167 additions and 38 deletions
12
yjit.c
12
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue