PlayAgain 0105 (fork side): ?blockbswap=0 sets bit 19 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 @@ -2035,6 +2035,7 @@ 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 + blockbswap: 1 << 19, // PlayAgain 0105: DISABLE polarity (default-on; ?blockbswap=0): block byte swaps in the 21-op form 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, @@ -2123,6 +2124,10 @@ if (params.get("directdispatch") === "0") { mask |= CACHED_INTERPRETER_DISABLE_BITS.directdispatch; } + // PlayAgain 0105: rotate byte swaps in blocks; ?blockbswap=0 turns them off. + if (params.get("blockbswap") === "0") { + mask |= CACHED_INTERPRETER_DISABLE_BITS.blockbswap; + } // ยง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