From 4667a3a665c40d9ea7f2be6417d1537deb208c52 Mon Sep 17 00:00:00 2001 From: Ole Friis Østergaard Date: Wed, 1 Mar 2023 14:49:39 +0100 Subject: Add defined_ivar as YJIT instruction as well This works much like the existing `defined` implementation, but calls out to rb_ivar_defined instead of the more general rb_vm_defined. Other difference to the existing `defined` implementation is that this new instruction has to take the same operands as the CRuby `defined_ivar` instruction. --- yjit/bindgen/src/main.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'yjit/bindgen/src/main.rs') diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs index 71bf1df3e8..71f7725f6b 100644 --- a/yjit/bindgen/src/main.rs +++ b/yjit/bindgen/src/main.rs @@ -346,6 +346,7 @@ fn main() { // From include/ruby/internal/intern/variable.h .allowlist_function("rb_attr_get") + .allowlist_function("rb_ivar_defined") .allowlist_function("rb_ivar_get") // From include/ruby/internal/intern/vm.h -- cgit v1.2.3