diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-11 21:10:44 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-11 21:26:40 -0800 |
commit | 58f7e8b7f83babeefb39d1a919d43de237c36c8a (patch) | |
tree | ba59a593ad5f7fc16aa25261d2d8471d77162c06 /lib/ruby_vm | |
parent | 47a6cfca720729d1ae3af534521cbe2a2f93cd50 (diff) |
RJIT: Automate function pointer imports
Diffstat (limited to 'lib/ruby_vm')
-rw-r--r-- | lib/ruby_vm/rjit/exit_compiler.rb | 2 | ||||
-rw-r--r-- | lib/ruby_vm/rjit/insn_compiler.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/ruby_vm/rjit/exit_compiler.rb b/lib/ruby_vm/rjit/exit_compiler.rb index 35ebf2ddc4..59df9b564c 100644 --- a/lib/ruby_vm/rjit/exit_compiler.rb +++ b/lib/ruby_vm/rjit/exit_compiler.rb @@ -43,7 +43,7 @@ module RubyVM::RJIT asm.comment('full cfunc return') asm.mov(C_ARGS[0], EC) asm.mov(C_ARGS[1], :rax) - asm.call(C.rb_full_cfunc_return) + asm.call(C.rjit_full_cfunc_return) # TODO: count the exit diff --git a/lib/ruby_vm/rjit/insn_compiler.rb b/lib/ruby_vm/rjit/insn_compiler.rb index 761dd8f527..86983bdc3f 100644 --- a/lib/ruby_vm/rjit/insn_compiler.rb +++ b/lib/ruby_vm/rjit/insn_compiler.rb @@ -2713,7 +2713,7 @@ module RubyVM::RJIT asm.comment('call rb_str_eql_internal') asm.mov(C_ARGS[0], a_opnd) asm.mov(C_ARGS[1], b_opnd) - asm.call(gen_eq ? C.rb_str_eql_internal : C.rb_str_neq_internal) + asm.call(gen_eq ? C.rb_str_eql_internal : C.rjit_str_neq_internal) # Push the output on the stack ctx.stack_pop(2) @@ -3552,7 +3552,7 @@ module RubyVM::RJIT asm.lea(C_ARGS[3], [:rax, -argc * C.VALUE.size]) # stack_argument_pointer. NOTE: C_ARGS[3] is rcx asm.mov(C_ARGS[4], kw_splat) asm.mov(C_ARGS[5], C.VM_BLOCK_HANDLER_NONE) - asm.call(C.rb_optimized_call) + asm.call(C.rjit_optimized_call) ctx.stack_pop(argc + 1) |