diff --git a/js/src/wasm/WasmBCMemory.cpp b/js/src/wasm/WasmBCMemory.cpp index dff2dc11f334..2a3f52e28bf9 100644 --- a/js/src/wasm/WasmBCMemory.cpp +++ b/js/src/wasm/WasmBCMemory.cpp @@ -728,7 +728,7 @@ static void Deallocate(BaseCompiler* bc, RegI64 temp) { bc->freeI32(bc->specific_.ecx); } -#elif defined(__wasi__) +#elif defined(__wasi__) || (defined(JS_CODEGEN_NONE) && !defined(JS_64BIT)) static void Allocate(BaseCompiler*, RegI64*, RegI64*) {} static void Deallocate(BaseCompiler*, RegI64) {} diff --git a/js/src/wasm/WasmDebugFrame.cpp b/js/src/wasm/WasmDebugFrame.cpp index 862dfbbbba6b..d7d7e60d09fd 100644 --- a/js/src/wasm/WasmDebugFrame.cpp +++ b/js/src/wasm/WasmDebugFrame.cpp @@ -47,8 +47,10 @@ void DebugFrame::alignmentStaticAsserts() { static_assert(WasmStackAlignment >= Alignment, "Aligned by ABI before pushing DebugFrame"); +#ifndef JS_CODEGEN_NONE static_assert((offsetof(DebugFrame, frame_) + sizeof(Frame)) % Alignment == 0, "Aligned after pushing DebugFrame"); +#endif #ifdef JS_CODEGEN_ARM64 // This constraint may or may not be necessary. If you hit this because // you've changed the frame size then feel free to remove it, but be extra