mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
RJIT: Fix arguments to SPECIAL_CONST_P
This commit is contained in:
parent
f3acaf312c
commit
2c560b976e
1 changed files with 2 additions and 2 deletions
|
@ -1283,7 +1283,7 @@ module RubyVM::RJIT
|
|||
asm.cmovnz(:rax, :rcx)
|
||||
|
||||
# Push the return value onto the stack
|
||||
out_type = if C::SPECIAL_CONST_P(pushval)
|
||||
out_type = if C::SPECIAL_CONST_P(C.to_ruby(pushval))
|
||||
Type::UnknownImm
|
||||
else
|
||||
Type::Unknown
|
||||
|
@ -1337,7 +1337,7 @@ module RubyVM::RJIT
|
|||
asm.cmovnz(:rax, :rcx)
|
||||
|
||||
# Push the return value onto the stack
|
||||
out_type = C::SPECIAL_CONST_P(pushval) ? Type::UnknownImm : Type::Unknown
|
||||
out_type = C::SPECIAL_CONST_P(C.to_ruby(pushval)) ? Type::UnknownImm : Type::Unknown
|
||||
stack_ret = ctx.stack_push(out_type)
|
||||
asm.mov(stack_ret, :rax)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue