Skip to content

Commit 7ce6bca

Browse files
committed
Expose rb_hash_resurrect
This is for implementing the `duphash` instruction
1 parent 01507d2 commit 7ce6bca

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

rjit_c.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,10 @@ def C.rb_hash_new_with_size
616616
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_hash_new_with_size) }
617617
end
618618

619+
def C.rb_hash_resurrect
620+
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_hash_resurrect) }
621+
end
622+
619623
def C.rb_ivar_defined
620624
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_ivar_defined) }
621625
end

tool/rjit/bindgen.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ def push_target(target)
526526
rb_hash_bulk_insert
527527
rb_hash_new
528528
rb_hash_new_with_size
529+
rb_hash_resurrect
529530
rb_ivar_get
530531
rb_obj_as_string_result
531532
rb_obj_is_kind_of

0 commit comments

Comments
 (0)