From 74a9bacc581b7011c11f79d652d705452fe39fc6 Mon Sep 17 00:00:00 2001 From: Basilisk-Dev Date: Sat, 25 Apr 2026 17:21:49 -0400 Subject: [PATCH] Issue #3049 - loongarch64: restore pre-barrier link register correctly --- js/src/jit/loongarch64/Trampoline-loongarch64.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/src/jit/loongarch64/Trampoline-loongarch64.cpp b/js/src/jit/loongarch64/Trampoline-loongarch64.cpp index 33185e1622..6ce68a5854 100644 --- a/js/src/jit/loongarch64/Trampoline-loongarch64.cpp +++ b/js/src/jit/loongarch64/Trampoline-loongarch64.cpp @@ -872,9 +872,8 @@ JitRuntime::generatePreBarrier(JSContext* cx, MIRType type) masm.passABIArg(a1); masm.callWithABI(IonMarkFunction(type)); - save.take(AnyRegister(ra)); masm.PopRegsInMask(save); - masm.ret(); + masm.abiret(); Linker linker(masm); AutoFlushICache afc("PreBarrier");