diff options
author | Noah Gibbs (and/or Benchmark CI) <noah.gibbs@shopify.com> | 2022-05-25 16:31:38 +0000 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2022-05-26 13:06:47 -0400 |
commit | ba88787087b0d979f806e6b58cfbc3886d942968 (patch) | |
tree | 1ed25c3452df88940c8471c994f4d2c550237ab6 /yjit/bindgen | |
parent | bd472ef36f22de176a886cbe789480e84990b82b (diff) |
Use bindgen to import CRuby constants for YARV instruction bytecodes
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5948
Diffstat (limited to 'yjit/bindgen')
-rw-r--r-- | yjit/bindgen/src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs index 7049688e1f..26717d018c 100644 --- a/yjit/bindgen/src/main.rs +++ b/yjit/bindgen/src/main.rs @@ -56,6 +56,9 @@ fn main() { // Prune these types since they are system dependant and we don't use them .blocklist_type("__.*") + // Import YARV bytecode instruction constants + .allowlist_type("ruby_vminsn_type") + // From include/ruby/internal/intern/string.h .allowlist_function("rb_utf8_str_new") .allowlist_function("rb_str_append") |