mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 22:14:37 +02:00
Fix the operand for branchunless
This commit is contained in:
parent
98a3b40d55
commit
6bc8e4a279
1 changed files with 2 additions and 2 deletions
|
@ -342,8 +342,8 @@ module RubyVM::MJIT
|
||||||
# TODO: skip check for known truthy
|
# TODO: skip check for known truthy
|
||||||
|
|
||||||
# This `test` sets ZF only for Qnil and Qfalse, which let jz jump.
|
# This `test` sets ZF only for Qnil and Qfalse, which let jz jump.
|
||||||
asm.test([SP, C.VALUE.size * (ctx.stack_size - 1)], ~Qnil)
|
val = ctx.stack_pop
|
||||||
ctx.stack_pop(1)
|
asm.test(val, ~Qnil)
|
||||||
|
|
||||||
# Set stubs
|
# Set stubs
|
||||||
branch_stub = BranchStub.new(
|
branch_stub = BranchStub.new(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue