From b9f9440e95ba701ec341ea665a964128ec5c171a Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 23 Feb 2023 10:07:51 -0800 Subject: [PATCH] YJIT: Trivial fixes in codegen.rs --- yjit/src/codegen.rs | 2 +- yjit/src/core.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index f216d8bb48..66c8e59c76 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -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 diff --git a/yjit/src/core.rs b/yjit/src/core.rs index cb6a328ee3..498ac17841 100644 --- a/yjit/src/core.rs +++ b/yjit/src/core.rs @@ -1505,7 +1505,7 @@ impl Context { pub fn two_fixnums_on_stack(&self, jit: &mut JITState) -> Option { 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()); }