summaryrefslogtreecommitdiff
path: root/yjit/bindgen
diff options
context:
space:
mode:
authorJimmy Miller <jimmy.miller@shopify.com>2022-11-08 15:28:28 -0500
committerGitHub <noreply@github.com>2022-11-08 15:28:28 -0500
commit1a65ab20cb6519ab3d4e58141cfd812eaea5f7e0 (patch)
treed0ec67422f133161e45e00841c4c84992bb075d4 /yjit/bindgen
parentaada904d94ece1d1b48d6275169d3f906a062247 (diff)
downloadruby-1a65ab20cb6519ab3d4e58141cfd812eaea5f7e0.tar.gz
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.
Diffstat (limited to 'yjit/bindgen')
-rw-r--r--yjit/bindgen/src/main.rs2
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")