diff options
| author | Aaron Patterson <tenderlove@ruby-lang.org> | 2023-06-21 16:02:08 -0700 |
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2023-06-23 11:46:21 -0700 |
| commit | 7ce6bcaf8b1f06ff27920f287f534b9c19d9ccc3 (patch) | |
| tree | 5e127a533b9e39fa252356029b45bdbdbb3f5f7f | |
| parent | 01507d2f80a99985c5f25027d87e58b8a97b3da2 (diff) | |
Expose rb_hash_resurrect
This is for implementing the `duphash` instruction
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7969
| -rw-r--r-- | rjit_c.rb | 4 | ||||
| -rwxr-xr-x | tool/rjit/bindgen.rb | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -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 diff --git a/tool/rjit/bindgen.rb b/tool/rjit/bindgen.rb index 1dd3b78bd5..f54d2203ac 100755 --- a/tool/rjit/bindgen.rb +++ b/tool/rjit/bindgen.rb @@ -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 |
