summaryrefslogtreecommitdiff
path: root/rjit_c.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-18 21:42:10 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-18 21:42:20 -0700
commit8510f33cc1d7f6b5148d596cfea3fbf734661cd8 (patch)
tree8a9d758ff601da2f4a50e97e99eb9dd77b03447a /rjit_c.rb
parent4a8de3fa8872ed43b33f1ae81ae4767f4334283a (diff)
downloadruby-8510f33cc1d7f6b5148d596cfea3fbf734661cd8.tar.gz
RJIT: Implement intern
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 9454ab2c1a..a582fd80ba 100644
--- a/rjit_c.rb
+++ b/rjit_c.rb
@@ -593,6 +593,10 @@ module RubyVM::RJIT # :nodoc: all
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_str_getbyte) }
end
+ def C.rb_str_intern
+ Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_str_intern) }
+ end
+
def C.rb_vm_bh_to_procval
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_vm_bh_to_procval) }
end