YJIT: Trivial fixes in codegen.rs
This commit is contained in:
parent
5444dde738
commit
b9f9440e95
@ -2011,7 +2011,7 @@ fn gen_get_ivar(
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Guard heap object (recv_opnd must be used before stack_oop)
|
// Guard heap object (recv_opnd must be used before stack_pop)
|
||||||
guard_object_is_heap(ctx, asm, recv, recv_opnd, side_exit);
|
guard_object_is_heap(ctx, asm, recv, recv_opnd, side_exit);
|
||||||
|
|
||||||
// Pop receiver if it's on the temp stack
|
// Pop receiver if it's on the temp stack
|
||||||
|
@ -1505,7 +1505,7 @@ impl Context {
|
|||||||
|
|
||||||
pub fn two_fixnums_on_stack(&self, jit: &mut JITState) -> Option<bool> {
|
pub fn two_fixnums_on_stack(&self, jit: &mut JITState) -> Option<bool> {
|
||||||
if jit.at_current_insn() {
|
if jit.at_current_insn() {
|
||||||
let comptime_recv = jit.peek_at_stack( self, 1);
|
let comptime_recv = jit.peek_at_stack(self, 1);
|
||||||
let comptime_arg = jit.peek_at_stack(self, 0);
|
let comptime_arg = jit.peek_at_stack(self, 0);
|
||||||
return Some(comptime_recv.fixnum_p() && comptime_arg.fixnum_p());
|
return Some(comptime_recv.fixnum_p() && comptime_arg.fixnum_p());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user