diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2023-02-02 16:54:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-02 16:54:16 -0500 |
commit | 73674cac2bbb2616a182305f4719844c59816e21 (patch) | |
tree | 2fff89fff390860ba7ea3b5f4919e91499ed06b1 /yjit/bindgen | |
parent | 92ac5f686b72942c9709a8f3e07f45f6a44ebc6b (diff) |
YJIT: log the names of methods we call to in disasm (#7231)
* YJIT: log the names of methods we call to in disasm
* Assert that pointer is not null
* Handle case where UTF8 conversion not possible
Notes
Notes:
Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'yjit/bindgen')
-rw-r--r-- | yjit/bindgen/src/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs index 8d29d42bf7..3086d6b860 100644 --- a/yjit/bindgen/src/main.rs +++ b/yjit/bindgen/src/main.rs @@ -77,6 +77,9 @@ fn main() { // From encindex.h .allowlist_type("ruby_preserved_encindex") + // From include/ruby/ruby.h + .allowlist_function("rb_class2name") + // This struct is public to Ruby C extensions // From include/ruby/internal/core/rbasic.h .allowlist_type("RBasic") @@ -202,6 +205,7 @@ fn main() { // From include/ruby/internal/symbol.h .allowlist_function("rb_intern") .allowlist_function("rb_id2sym") + .allowlist_function("rb_id2name") .allowlist_function("rb_sym2id") .allowlist_function("rb_str_intern") |