diff options
author | Jimmy Miller <jimmy.miller@shopify.com> | 2022-11-08 15:28:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 15:28:28 -0500 |
commit | 1a65ab20cb6519ab3d4e58141cfd812eaea5f7e0 (patch) | |
tree | d0ec67422f133161e45e00841c4c84992bb075d4 /yjit/bindgen | |
parent | aada904d94ece1d1b48d6275169d3f906a062247 (diff) |
Implement optimize call (#6691)
This dispatches to a c func for doing the dynamic lookup. I experimented with chain on the proc but wasn't able to detect which call sites would be monomorphic vs polymorphic. There is definitely room for optimization here, but it does reduce exits.
Notes
Notes:
Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'yjit/bindgen')
-rw-r--r-- | yjit/bindgen/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs index 167ab2a74f..acbbaa613b 100644 --- a/yjit/bindgen/src/main.rs +++ b/yjit/bindgen/src/main.rs @@ -288,7 +288,7 @@ fn main() { .allowlist_function("rb_yjit_get_proc_ptr") .allowlist_function("rb_yjit_exit_locations_dict") .allowlist_function("rb_yjit_icache_invalidate") - + .allowlist_function("rb_optimized_call") // from vm_sync.h .allowlist_function("rb_vm_barrier") |