summaryrefslogtreecommitdiff
path: root/yjit/bindgen
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2024-10-21 18:08:51 -0400
committerAlan Wu <[email protected]>2024-10-22 11:30:35 -0400
commitb41c65b57735ce0d556b6fdad0ce490e939b1c7a (patch)
tree250a9a3904284d412a3ad37bc57ac49ca0b124da /yjit/bindgen
parent3a327e1c18df5439920d2a54ba68d82dd069326b (diff)
YJIT: Implement specialization for no-op `{Kernel,Numeric}#dup`
Type information in the context for no additional work! This is the `if (special_object_p(obj)) return obj;` path in rb_obj_dup() and for Numeric#dup, it's always the identity function.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11926
Diffstat (limited to 'yjit/bindgen')
-rw-r--r--yjit/bindgen/src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs
index 649d540c94..5f0f599b9a 100644
--- a/yjit/bindgen/src/main.rs
+++ b/yjit/bindgen/src/main.rs
@@ -167,6 +167,7 @@ fn main() {
.allowlist_var("rb_cIO")
.allowlist_var("rb_cSymbol")
.allowlist_var("rb_cFloat")
+ .allowlist_var("rb_cNumeric")
.allowlist_var("rb_cString")
.allowlist_var("rb_cThread")
.allowlist_var("rb_cArray")