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 :setn then setn(jit, ctx, asm)
when :adjuststack then adjuststack(jit, ctx, asm) when :adjuststack then adjuststack(jit, ctx, asm)
when :defined then defined(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 # checkmatch
# checkkeyword # checkkeyword
# checktype # checktype

View File

@ -521,6 +521,10 @@ module RubyVM::RJIT # :nodoc: all
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_hash_new_with_size) } Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_hash_new_with_size) }
end end
def C.rb_ivar_defined
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_ivar_defined) }
end
def C.rb_ivar_get def C.rb_ivar_get
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_ivar_get) } Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_ivar_get) }
end end

View File

@ -513,6 +513,7 @@ generator = BindingGenerator.new(
rjit_optimized_call rjit_optimized_call
rjit_str_neq_internal rjit_str_neq_internal
rjit_record_exit_stack rjit_record_exit_stack
rb_ivar_defined
], ],
types: %w[ types: %w[
CALL_DATA CALL_DATA