--- a/Source/JavaScriptCore/wasm/WasmBBQJIT.cpp +++ b/Source/JavaScriptCore/wasm/WasmBBQJIT.cpp @@ -735,6 +735,9 @@ BBQJIT::BBQJIT(CompilationContext& compi bool BBQJIT::canTierUpToOMG() const { +#if !ENABLE(WEBASSEMBLY_OMGJIT) + return false; +#else if (!Options::useOMGJIT()) return false; @@ -746,6 +749,7 @@ bool BBQJIT::canTierUpToOMG() const return false; } return true; +#endif } void BBQJIT::emitIncrementCallProfileCount(unsigned callProfileIndex) @@ -3126,7 +3130,10 @@ void BBQJIT::emitEntryTierUpCheck() jit.jump(tierUpResume); }); #else - RELEASE_ASSERT_NOT_REACHED(); + // OMG/FTL tiering is unavailable on this architecture; canTierUpToOMG() + // can still return true (it is gated only on per-function thresholds, not + // on the OMG implementation being compiled in), so silently skip emitting + // the tier-up counter check rather than aborting. #endif }