mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 06:25:31 +02:00
Get rid of BlockStub
This commit is contained in:
parent
47e2ea3a80
commit
d415f1e317
6 changed files with 1 additions and 106 deletions
|
@ -57,20 +57,6 @@ module RubyVM::MJIT
|
|||
asm.ret
|
||||
end
|
||||
|
||||
# @param ctx [RubyVM::MJIT::Context]
|
||||
# @param asm [RubyVM::MJIT::Assembler]
|
||||
# @param block_stub [RubyVM::MJIT::BlockStub]
|
||||
def compile_block_stub(ctx, asm, block_stub)
|
||||
# Call rb_mjit_block_stub_hit
|
||||
asm.comment("block stub hit: #{block_stub.iseq.body.location.label}@#{C.rb_iseq_path(block_stub.iseq)}:#{iseq_lineno(block_stub.iseq, block_stub.pc)}")
|
||||
asm.mov(:rdi, to_value(block_stub))
|
||||
asm.mov(:esi, ctx.sp_offset)
|
||||
asm.call(C.rb_mjit_block_stub_hit)
|
||||
|
||||
# Jump to the address returned by rb_mjit_stub_hit
|
||||
asm.jmp(:rax)
|
||||
end
|
||||
|
||||
# @param ctx [RubyVM::MJIT::Context]
|
||||
# @param asm [RubyVM::MJIT::Assembler]
|
||||
# @param branch_stub [RubyVM::MJIT::BranchStub]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue