Skip to content

Commit 3ad6bba

Browse files
XrXrk0kubun
andcommitted
ZJIT: Refer to scratch registers in operands
Co-authored-by: Takashi Kokubun <[email protected]>
1 parent afac226 commit 3ad6bba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zjit/src/backend/arm64/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ impl Assembler
200200
/// Avoid using if you can since this is used to lower [Insn] internally and
201201
/// so conflicts are possible.
202202
pub const SCRATCH_REG: Reg = X16_REG;
203-
const SCRATCH0: A64Opnd = A64Opnd::Reg(Assembler::SCRATCH_REG);
204-
const SCRATCH0_REG: Reg = Assembler::SCRATCH_REG;
205-
const SCRATCH1: A64Opnd = A64Opnd::Reg(X17_REG);
203+
const SCRATCH0_REG: Reg = Self::SCRATCH_REG;
206204
const SCRATCH1_REG: Reg = X17_REG;
205+
const SCRATCH0: A64Opnd = A64Opnd::Reg(Self::SCRATCH0_REG);
206+
const SCRATCH1: A64Opnd = A64Opnd::Reg(Self::SCRATCH1_REG);
207207

208208
/// Get the list of registers from which we will allocate on this platform
209209
pub fn get_alloc_regs() -> Vec<Reg> {

0 commit comments

Comments
 (0)