summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ruby_vm/rjit/insn_compiler.rb2
-rw-r--r--rjit_c.rb4
-rwxr-xr-xtool/rjit/bindgen.rb1
3 files changed, 6 insertions, 1 deletions
diff --git a/lib/ruby_vm/rjit/insn_compiler.rb b/lib/ruby_vm/rjit/insn_compiler.rb
index 50cafb2b92..861a6cb129 100644
--- a/lib/ruby_vm/rjit/insn_compiler.rb
+++ b/lib/ruby_vm/rjit/insn_compiler.rb
@@ -64,7 +64,7 @@ module RubyVM::RJIT
when :setn then setn(jit, ctx, asm)
when :adjuststack then adjuststack(jit, ctx, asm)
when :defined then defined(jit, ctx, asm)
- when :definedvar then definedivar(jit, ctx, asm)
+ when :definedivar then definedivar(jit, ctx, asm)
# checkmatch
# checkkeyword
# checktype
diff --git a/rjit_c.rb b/rjit_c.rb
index cf9b8c3cc8..549b87c362 100644
--- a/rjit_c.rb
+++ b/rjit_c.rb
@@ -521,6 +521,10 @@ module RubyVM::RJIT # :nodoc: all
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_hash_new_with_size) }
end
+ def C.rb_ivar_defined
+ Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_ivar_defined) }
+ end
+
def C.rb_ivar_get
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_ivar_get) }
end
diff --git a/tool/rjit/bindgen.rb b/tool/rjit/bindgen.rb
index ec943505d9..cb43e33b0b 100755
--- a/tool/rjit/bindgen.rb
+++ b/tool/rjit/bindgen.rb
@@ -513,6 +513,7 @@ generator = BindingGenerator.new(
rjit_optimized_call
rjit_str_neq_internal
rjit_record_exit_stack
+ rb_ivar_defined
],
types: %w[
CALL_DATA