mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 22:14:37 +02:00
Refactor jit_return with BranchStub
This commit is contained in:
parent
6c1b1fa1f5
commit
d88b59be92
2 changed files with 19 additions and 13 deletions
|
@ -71,12 +71,11 @@ module RubyVM::MJIT
|
|||
asm.jmp(:rax)
|
||||
end
|
||||
|
||||
# @param jit [RubyVM::MJIT::JITState]
|
||||
# @param ctx [RubyVM::MJIT::Context]
|
||||
# @param asm [RubyVM::MJIT::Assembler]
|
||||
# @param branch_stub [RubyVM::MJIT::BranchStub]
|
||||
# @param target0_p [TrueClass,FalseClass]
|
||||
def compile_branch_stub(jit, ctx, asm, branch_stub, target0_p)
|
||||
def compile_branch_stub(ctx, asm, branch_stub, target0_p)
|
||||
# Call rb_mjit_branch_stub_hit
|
||||
asm.comment("branch stub hit: #{branch_stub.iseq.body.location.label}@#{C.rb_iseq_path(branch_stub.iseq)}:#{iseq_lineno(branch_stub.iseq, target0_p ? branch_stub.target0.pc : branch_stub.target1.pc)}")
|
||||
asm.mov(:rdi, to_value(branch_stub))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue