Skip to content

Commit

Permalink
Expose rb_hash_resurrect
Browse files Browse the repository at this point in the history
This is for implementing the `duphash` instruction
  • Loading branch information
tenderlove committed Jun 23, 2023
1 parent 01507d2 commit 7ce6bca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rjit_c.rb
Expand Up @@ -616,6 +616,10 @@ def C.rb_hash_new_with_size
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
Expand Down
1 change: 1 addition & 0 deletions tool/rjit/bindgen.rb
Expand Up @@ -526,6 +526,7 @@ def push_target(target)
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
Expand Down

0 comments on commit 7ce6bca

Please sign in to comment.