RJIT: Fix a typo

and import a missing function
This commit is contained in:
Takashi Kokubun 2023-03-12 22:09:04 -07:00
parent 330086d3f6
commit d27b594841
3 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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