diff --git a/js/src/wasm/WasmBCMemory.cpp b/js/src/wasm/WasmBCMemory.cpp
index 040e812738ed65a96374b23915c9136e673176b5..7d84dfb1746d3601114a4cc013162c62867e2d71 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