From 43e92147e19c3d0c1e7c487590c3a6aa1281a2d8 Mon Sep 17 00:00:00 2001 From: Zhao Jiazhong Date: Fri, 22 Nov 2024 11:07:08 +0000 Subject: [PATCH] Bug 1932605 - [loongarch] Implement atomicPause function. r=anba Differential Revision: https://phabricator.services.mozilla.com/D229773 --- js/src/jit/loong64/MacroAssembler-loong64.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/src/jit/loong64/MacroAssembler-loong64.cpp b/js/src/jit/loong64/MacroAssembler-loong64.cpp index 26831f8e8595..5e3184789d4c 100644 --- a/js/src/jit/loong64/MacroAssembler-loong64.cpp +++ b/js/src/jit/loong64/MacroAssembler-loong64.cpp @@ -4354,7 +4354,11 @@ void MacroAssembler::atomicEffectOpJS(Scalar::Type arrayType, offsetTemp, maskTemp); } -void MacroAssembler::atomicPause() { MOZ_CRASH("NYI"); } +void MacroAssembler::atomicPause() { + // LoongArch doesn't have 'pause' or 'yield' instructions like other + // platforms, just use nop here. + nop(); +} void MacroAssembler::flexibleQuotient32(Register rhs, Register srcDest, bool isUnsigned,