summaryrefslogtreecommitdiff
path: root/yjit/bindgen
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/bindgen
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/bindgen')
-rw-r--r--yjit/bindgen/src/main.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs
index f54addc795..f8d87aeec8 100644
--- a/yjit/bindgen/src/main.rs
+++ b/yjit/bindgen/src/main.rs
@@ -70,6 +70,9 @@ fn main() {
.allowlist_function("rb_str_buf_append")
.allowlist_function("rb_str_dup")
+ // From encindex.h
+ .allowlist_type("ruby_preserved_encindex")
+
// This struct is public to Ruby C extensions
// From include/ruby/internal/core/rbasic.h
.allowlist_type("RBasic")
@@ -240,6 +243,7 @@ fn main() {
.allowlist_var("VM_ENV_DATA_INDEX_SPECVAL")
.allowlist_var("VM_ENV_DATA_INDEX_FLAGS")
.allowlist_var("VM_ENV_DATA_SIZE")
+ .allowlist_function("rb_iseq_path")
// From yjit.c
.allowlist_function("rb_iseq_(get|set)_yjit_payload")
@@ -265,6 +269,8 @@ fn main() {
.allowlist_function("rb_yjit_for_each_iseq")
.allowlist_function("rb_yjit_obj_written")
.allowlist_function("rb_yjit_str_simple_append")
+ .allowlist_function("rb_RSTRING_PTR")
+ .allowlist_function("rb_RSTRING_LEN")
.allowlist_function("rb_ENCODING_GET")
.allowlist_function("rb_yjit_exit_locations_dict")
@@ -282,6 +288,7 @@ fn main() {
.allowlist_function("rb_vm_insn_addr2opcode")
.allowlist_function("rb_iseqw_to_iseq")
.allowlist_function("rb_iseq_each")
+ .allowlist_function("rb_iseq_method_name")
// From builtin.h
.allowlist_type("rb_builtin_function.*")