Skip to content

Commit

Permalink
RJIT: Fix a typo
Browse files Browse the repository at this point in the history
and import a missing function
  • Loading branch information
k0kubun committed Mar 13, 2023
1 parent 330086d commit d27b594
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby_vm/rjit/insn_compiler.rb
Expand Up @@ -64,7 +64,7 @@ def compile(jit, ctx, asm, insn)
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
Expand Down
4 changes: 4 additions & 0 deletions rjit_c.rb
Expand Up @@ -521,6 +521,10 @@ def C.rb_hash_new_with_size
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
Expand Down
1 change: 1 addition & 0 deletions tool/rjit/bindgen.rb
Expand Up @@ -513,6 +513,7 @@ def push_target(target)
rjit_optimized_call
rjit_str_neq_internal
rjit_record_exit_stack
rb_ivar_defined
],
types: %w[
CALL_DATA
Expand Down

0 comments on commit d27b594

Please sign in to comment.