Expose rb_hash_resurrect

This is for implementing the `duphash` instruction
This commit is contained in:
Aaron Patterson 2023-06-21 16:02:08 -07:00 committed by Aaron Patterson
parent 01507d2f80
commit 7ce6bcaf8b
Notes: git 2023-06-23 18:46:40 +00:00
2 changed files with 5 additions and 0 deletions

View File

@ -616,6 +616,10 @@ module RubyVM::RJIT # :nodoc: all
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_hash_new_with_size) }
end
def C.rb_hash_resurrect
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_hash_resurrect) }
end
def C.rb_ivar_defined
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_ivar_defined) }
end

View File

@ -526,6 +526,7 @@ generator = BindingGenerator.new(
rb_hash_bulk_insert
rb_hash_new
rb_hash_new_with_size
rb_hash_resurrect
rb_ivar_get
rb_obj_as_string_result
rb_obj_is_kind_of