mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 22:14:37 +02:00
Save PC and SP on entry exit
This commit is contained in:
parent
6be4e065eb
commit
2cd6406d67
4 changed files with 16 additions and 10 deletions
|
@ -149,7 +149,7 @@ module RubyVM::MJIT
|
|||
# @param asm [RubyVM::MJIT::Assembler]
|
||||
def compile_block(asm, jit:, pc: jit.iseq.body.iseq_encoded.to_i, ctx: Context.new)
|
||||
# Mark the block start address and prepare an exit code storage
|
||||
jit.block = Block.new(pc:)
|
||||
jit.block = Block.new(pc:, ctx: ctx.dup)
|
||||
asm.block(jit.block)
|
||||
|
||||
# Compile each insn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue