PlayAgain 0104 (fork side): ?directdispatch=0 sets bit 2 of the cached-interpreter mask (DISABLE polarity). SPDX-License-Identifier: GPL-2.0-or-later --- a/src/core-host.js +++ b/src/core-host.js @@ -2034,6 +2034,7 @@ // Bits 0, 1 and 2 are unused (patch 0196 removed the helpers they gated); PlayAgain's patches use them. const CACHED_INTERPRETER_DISABLE_BITS = { mem2inline: 1 << 1, // PlayAgain 0103: DISABLE polarity (default-on; ?mem2inline=0): MEM2 through the MMU helpers again + directdispatch: 1 << 2, // PlayAgain 0104: DISABLE polarity (default-on; ?directdispatch=0): compiled blocks through the generic callback call again dcbxskiplegacy: 1 << 0, // PlayAgain 0101: ENABLE polarity (default-off; ?dcbxskip=legacy): JIT off skips every dcbx-loop invalidation, as before 0101 dcbxloop: 1 << 3, fastbranch: 1 << 4, @@ -2118,6 +2119,10 @@ if (params.get("mem2inline") === "0") { mask |= CACHED_INTERPRETER_DISABLE_BITS.mem2inline; } + // PlayAgain 0104: the direct RunWasmBlock arm; ?directdispatch=0 turns it off. + if (params.get("directdispatch") === "0") { + mask |= CACHED_INTERPRETER_DISABLE_BITS.directdispatch; + } // ยง28bt block re-dispatch: DEFAULT-ON. Rigorously verified +11% warm // (4-run non-overlapping same-binary A/B, correctness-clean on battle); // it is the evidence-backed JIT-core speed win for the >50% of hot game