)]}'
{
  "commit": "d0097cd340114ade6e1292e5c92e6152f7eb473b",
  "tree": "34169837e2caa000a5ed4213c5951ca707890ed8",
  "parents": [
    "ad7c2338440c8820232fb0d2b96c4a665cd38292"
  ],
  "author": {
    "name": "Compression Team",
    "email": "noreply@google.com",
    "time": "Sat Oct 31 19:54:36 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Mon Nov 02 21:32:41 2026 -0800"
  },
  "message": "Replace TransposeDecoder switch with preserve_none tail calls and frameless handlers\n\nOn 64-bit Clang x86-64 and AArch64 targets (`RIEGELI_TAILCALL`), replaces the\ncentral `HandleNode()` `switch` dispatch in `riegeli::TransposeDecoder::Decode`\nwith 6-register `preserve_none` + `musttail` per-handler tail calls across 10\nlocalized hunks (`+412 / -1` lines in `transpose_decoder.cc`, with zero edits to\nexisting `DecodingState` callbacks or `MaskBuffer` overloads, and preserving the\ncompact `16B`/`24B` `StateMachineNode` layout and untouched `HandleNode()` +\n`TransitionNode()` `switch` loop on 32-bit and non-`musttail` targets):\n1. Under `#if RIEGELI_TAILCALL` (`defined(__clang__) \u0026\u0026\n   ABSL_HAVE_CPP_ATTRIBUTE(clang::musttail) \u0026\u0026 (defined(__aarch64__) ||\n   defined(__x86_64__)) \u0026\u0026 !defined(__ILP32__)`), aligns `StateMachineNode` to\n   32 bytes (`alignas(32)`, zero dead padding) by adding a direct `Callback`\n   function pointer alongside `bool is_implicit : 1` and\n   `CallbackType callback_type` (with `Context`\u0027s 128-node inline buffer,\n   `Context` uses ~4.1 KB on `Decode`\u0027s stack). Other targets omit `Callback`\n   and `alignas(32)`, keeping `StateMachineNode` at `8 + 2 * sizeof(void*)`.\n2. Dispatches via `[[clang::preserve_none]]` + `[[clang::musttail]]` handlers\n   (falling back to the standard calling convention + `[[clang::musttail]]`\n   under AddressSanitizer and HWAddressSanitizer and on non-Linux targets),\n   pinning `state`, `node`, `num_iters`, `transitions_cursor`,\n   `transitions_limit`, and `dest` in registers across transitions, pairing\n   frameless fast-path wrappers\n   (`InvokeVarint`, `InvokeFixed`, `InvokeCopyTag`, `InvokeMessageStart`,\n   `InvokeSubmessageStart`, `InvokeSubmessageEnd`,\n   `InvokeSkippedSubmessageStart`, `InvokeSkippedSubmessageEnd`) with\n   `ABSL_ATTRIBUTE_NOINLINE` cold/slow helpers and `InvokeSlowCallback`, and\n   `#undef`ing all local `RIEGELI_*` macros at EOF.\n\nPiperOrigin-RevId: 1011404129\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "79ccdac296c5c4f1b83e394bb481f554b1856769",
      "old_mode": 33188,
      "old_path": "doc/record_writer_options.md",
      "new_id": "343e0708b30c062b1192dd6561f582773c53d129",
      "new_mode": 33188,
      "new_path": "doc/record_writer_options.md"
    },
    {
      "type": "modify",
      "old_id": "f802f89f28a2d58071bb4406f7e79097f0150370",
      "old_mode": 33188,
      "old_path": "riegeli/chunk_encoding/transpose_decoder.cc",
      "new_id": "1eebd863c7719420936a41de7dc1e62e5d0b81f2",
      "new_mode": 33188,
      "new_path": "riegeli/chunk_encoding/transpose_decoder.cc"
    },
    {
      "type": "modify",
      "old_id": "1f9c75acb0af2e620375225bf8a00bfb4f90a550",
      "old_mode": 33188,
      "old_path": "riegeli/chunk_encoding/transpose_decoder.h",
      "new_id": "9b72a0cc85e3ef0df6012396c19eae1270b529d3",
      "new_mode": 33188,
      "new_path": "riegeli/chunk_encoding/transpose_decoder.h"
    }
  ]
}
