Files
video/libs/wpewebkit/patches/141-JavaScriptCore-BBQJIT-gate-canTierUpToOMG.patch
T
Daniel Golle df0b899123 wpewebkit: update to version 2.52.3
Update WPEWebKit to the 2.52 stable major release branch.

Includes a pending patchset to get WASM BBQJIT working on RISCV64,
upstream PR https://github.com/WebKit/WebKit/pull/65621

Alltogether this brings acceptable performance (even with LLVMPipe
Mesa software renderer) on RISCV64.

Link: https://wpewebkit.org/release/wpewebkit-2.52.0.html
Link: https://wpewebkit.org/release/wpewebkit-2.52.1.html
Link: https://wpewebkit.org/release/wpewebkit-2.52.2.html
Link: https://wpewebkit.org/release/wpewebkit-2.52.3.html
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-05-27 19:27:26 +01:00

33 lines
953 B
Diff

--- 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
}