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");