diff options
author | Takashi Kokubun <[email protected]> | 2022-12-28 13:16:14 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-03-05 22:11:20 -0800 |
commit | 4eb6f1dbb9062097c65077eda7945f791c7e4464 (patch) | |
tree | 48752a68094ab61d060220358ae887e4459a5542 /lib/ruby_vm/mjit/insn_compiler.rb | |
parent | e9535a439b1c6717154a79b86d698cb81c3a7d70 (diff) |
Put nil on an appropriate index
Diffstat (limited to 'lib/ruby_vm/mjit/insn_compiler.rb')
-rw-r--r-- | lib/ruby_vm/mjit/insn_compiler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ruby_vm/mjit/insn_compiler.rb b/lib/ruby_vm/mjit/insn_compiler.rb index 0626f40777..73a260575e 100644 --- a/lib/ruby_vm/mjit/insn_compiler.rb +++ b/lib/ruby_vm/mjit/insn_compiler.rb @@ -8,7 +8,7 @@ module RubyVM::MJIT # @param ctx [RubyVM::MJIT::Context] # @param asm [RubyVM::MJIT::X86Assembler] def putnil(jit, ctx, asm) - asm.mov([SP], Qnil) + asm.mov([SP, C.VALUE.size * ctx.stack_size], Qnil) ctx.stack_size += 1 KeepCompiling end |