зеркало из https://github.com/github/ruby.git
YJIT: Trivial fixes in codegen.rs
This commit is contained in:
Родитель
5444dde738
Коммит
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);
|
||||
|
||||
// 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> {
|
||||
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);
|
||||
return Some(comptime_recv.fixnum_p() && comptime_arg.fixnum_p());
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче