diff options
author | Takashi Kokubun <[email protected]> | 2023-02-08 10:24:13 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-03-05 22:11:20 -0800 |
commit | 2cd6406d67017f0927cfe6409e20900c9bbe2a6f (patch) | |
tree | b02ad98904615b4ba7d0ebf0b04d1a386dfeff6c /lib/ruby_vm/mjit/compiler.rb | |
parent | 6be4e065eb2ff2bb25cd88de4f41fac20e693f37 (diff) |
Save PC and SP on entry exit
Diffstat (limited to 'lib/ruby_vm/mjit/compiler.rb')
-rw-r--r-- | lib/ruby_vm/mjit/compiler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ruby_vm/mjit/compiler.rb b/lib/ruby_vm/mjit/compiler.rb index 9c58786be2..4b2c5c662d 100644 --- a/lib/ruby_vm/mjit/compiler.rb +++ b/lib/ruby_vm/mjit/compiler.rb @@ -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 |