From 945a8b6938b327840829fd562a007daff90e55a7 Mon Sep 17 00:00:00 2001 From: Lars T Hansen <lhansen@mozilla.com> Date: Thu, 9 Sep 2021 11:51:10 +0000 Subject: [PATCH] Bug 1728549 - Add a 'none' case for some atomic ops. r=jseward This is needed for WASI, which has a weird configuration not previously tested. Differential Revision: https://phabricator.services.mozilla.com/D125062 --- js/src/wasm/WasmBCMemory.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/src/wasm/WasmBCMemory.cpp b/js/src/wasm/WasmBCMemory.cpp index 040e812738ed6..7d84dfb1746d3 100644 --- a/js/src/wasm/WasmBCMemory.cpp +++ b/js/src/wasm/WasmBCMemory.cpp @@ -710,6 +710,11 @@ static void Deallocate(BaseCompiler* bc, RegI64 temp) { bc->freeI32(bc->specific_.ecx); } +#elif defined(JS_CODEGEN_NONE) + +static void Allocate(BaseCompiler*, RegI64*, RegI64*) {} +static void Deallocate(BaseCompiler*, RegI64) {} + #endif } // namespace atomic_load64 -- GitLab