summaryrefslogtreecommitdiff
path: root/yjit/bindgen/src/main.rs
diff options
context:
space:
mode:
authorOle Friis Østergaard <[email protected]>2023-03-01 14:49:39 +0100
committerJohn Hawthorn <[email protected]>2023-03-08 09:34:31 -0800
commit4667a3a665c40d9ea7f2be6417d1537deb208c52 ()
tree5c58f9c1cb94bdef93baadfbea6bf27ca6648161 /yjit/bindgen/src/main.rs
parent1a3f8e1c9f6ce4b1cd7236fdcdd17a8719654320 (diff)
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.
Notes: Merged: https://.com/ruby/ruby/pull/7433
-rw-r--r--yjit/bindgen/src/main.rs1
1 files changed, 1 insertions, 0 deletions
@@ -346,6 +346,7 @@ fn main() {
// From include/ruby/internal/intern/variable.h
.allowlist_function("rb_attr_get")
.allowlist_function("rb_ivar_get")
// From include/ruby/internal/intern/vm.h