aboutsummaryrefslogtreecommitdiffstats
path: root/rjit_c.rb
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2023-06-21 16:02:08 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2023-06-23 11:46:21 -0700
commit7ce6bcaf8b1f06ff27920f287f534b9c19d9ccc3 (patch)
tree5e127a533b9e39fa252356029b45bdbdbb3f5f7f /rjit_c.rb
parent01507d2f80a99985c5f25027d87e58b8a97b3da2 (diff)
downloadruby-7ce6bcaf8b1f06ff27920f287f534b9c19d9ccc3.tar.gz
Expose rb_hash_resurrect
This is for implementing the `duphash` instruction
Diffstat (limited to 'rjit_c.rb')
-rw-r--r--rjit_c.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/rjit_c.rb b/rjit_c.rb
index 000fc0a5cc..735a097d69 100644
--- a/rjit_c.rb
+++ b/rjit_c.rb
@@ -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