feat(libSceNKWebKit): implement WTF printInternal for the remaining integer widths, float and ClockType #19841

Closed
B-Howell wants to merge 34 commits from upstream-pr/19841 into main
B-Howell commented 2026-11-14 02:14:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-11-14T02:14:48Z.


What

Implements eight existing throwing libSceNKWebKit stubs on top of #19839, reusing its PrintStream::printf and vtable slots:

  • printInternal(PrintStream&, signed char), short: printf("%d", static_cast<int>(value)); unsigned char, unsigned short: printf("%u", static_cast<unsigned>(value))
  • long long: "%lld"; unsigned long long: "%llu"
  • float: forwards to the double overload ("%lf")
  • ClockType: Wall, Monotonic and Approximate are printed through begin(), printInternal(const char*), end(); any other value throws where WebKit hits RELEASE_ASSERT_NOT_REACHED()

Source: pinned PrintStream.cpp, ClockType.cpp and ClockType.h. ClockType reuses the existing WTF::ClockType from WtfTimeTypes.hpp. The bool overload now shares the same begin/print/end helper. tools/progress.py libraries done: 15796 to 15804 (+8, 40.15% to 40.17%).

Tested

Ubuntu (WSL2), GCC, Release, Ninja. tests/WtfPrintInternal.cpp is extended: format and promoted value for each width (-128 signed char, 0xFF unsigned char, -32768 short, 0xFFFF unsigned short, INT64_MIN, UINT64_MAX), float 1.5f and 0.1f arrive as doubles with "%lf", ClockType 0, 1 and 2 give "%s" with Wall, Monotonic and Approximate on the stream begin() returned with one begin and one end call, and ClockType 3 throws std::invalid_argument without touching the stream.

  • Without the implementation (#19839 head plus this test): the test does not build, error: conflicting declaration of C function 'void _ZN3WTF13printInternalERNS_11PrintStreamEa(NKWebKit::WtfAbi::PrintStream&, signed char)' against the throwing stub.

  • With it: ctest -R '^nkwebkit_wtfprintinternal$' passed 3/3; ctest -R '^public_headers' 65/65 passed.

  • 48ab60a8b3: comment-only changes to the WtfPrintStream.cpp notice (trailing space removed, git diff -w empty; source lines added). git diff --check origin/main...HEAD clean and check_conventions.py --base origin/main passed.

  • @JJenkx, Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release, 48ab60a8b3 merged onto main 955f51545f (report): nkwebkit_wtfprintinternal passed 3/3, none skipped.

  • @ycbuzi, full ctest on Windows Server 2022 and 2025 (GitHub-hosted, WinLibs GCC 15.2.0), 9487ff0c94 merged into main (report): no failures beyond those on main on the same machine.

  • e3e87ff47a: merged main d4a1472af9 and removed the stale 5913 count line in docs/dev/debt/libSceNKWebKit.md that the 78a67cc9b1 merge kept; doc-only, not rebuilt. git diff --check origin/main...HEAD clean and check_conventions.py --base origin/main passed.

  • Debt fragment d0a3548e35: merged main c3d38470e0c and moved this PR's debt edits into docs/dev/debt/changes/claude-nkwebkit-wtf-print-internal-widths.md; the debt files match main, and the fragment applied to main gives the same debt lines as the previous head. debt_fold.py --check and check_conventions.py --base origin/main pass. Documentation only, no build.

  • Main merge 19184ba244c onto main 1d3c669c843: conflict only in Export.cpp and include/InventoryExports.hpp, where #19380 removed the adjacent PrintStream::end and StackBounds stubs and this PR removes the PrintStream::printf stub; all three stubs are dropped. WSL2 Ubuntu, GCC, Release: nkwebkit_wtf_tests and nkwebkit_wtfprintinternal_tests built and ctest -R '^(nkwebkit_wtf|nkwebkit_wtfprintinternal)$' --repeat until-fail:3 passed. debt_fold.py --check and check_conventions.py --base origin/main pass; the debt files match main.

  • Main merge 4a37dd6f1b1 onto main e4936123117: conflict only in Export.cpp and include/InventoryExports.hpp, where #24896 removed the adjacent printInternal(PrintStream&, const StringImpl*) stub and this PR removes the RawPointer, ClockType and const char* ones; all four stubs are dropped. #24896 also brought WtfDumpAbi::PrintStream (src/WtfDumpStreamAbi.hpp, from #21957), so src/WtfPrintStreamAbi.hpp now reuses that struct and its slot numbers instead of declaring a second PrintStream. Windows 11, WinLibs GCC 15.2.0 r7, Release: nkwebkit_wtfprintinternal_tests, nkwebkit_wtfstringdump_tests and nkwebkit_wtftimedump_tests built and passed 3/3. debt_fold.py --check and check_conventions.py --base origin/main pass; the debt files match main.

  • 3fa83936ae0: merged #19839 22bbab3beca (main 29b14e4c5e4). Conflicts only in Export.cpp and include/InventoryExports.hpp, where main removed the ReadWriteLock stubs and this PR removes the ClockType one; all are dropped. The merged base fragment claude-nkwebkit-wtf-print-internal.md is removed on this branch, since this PR's fragment already removes all of its rows, so debt_fold.py --check sees one fragment per entry. Windows 11, WinLibs GCC 15.2.0 r7, Release: nkwebkit_wtfprintinternal, nkwebkit_wtfstringdump, nkwebkit_wtftimedump and nkwebkit_jscdumps built and passed 3/3. check_conventions.py --base origin/main passes; the debt files match main.

  • d3e00afff1d: merged #19839 d730f676242 (main 700fae94382), no conflicts; it trial-merges cleanly onto main 6ef4f2f73b0. Windows 11, WinLibs GCC 15.2.0 r7, Release: nkwebkit_wtfprintinternal, nkwebkit_wtfmetaallocator, nkwebkit_wtfstringdump, nkwebkit_wtftext and nkwebkit_wtf built and passed. debt_fold.py --check and check_conventions.py --base origin/main pass; the debt files match main.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #19839
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

Summary by CodeRabbit

  • New Features
    • Formatted output now supports strings, characters, pointers, clock values, and numeric types. Invalid clock values are rejected.
  • Tests
    • Added coverage for formatting across supported value types and clock values, including invalid clock values.
  • Documentation
    • Added technical reference information on formatted output behavior and compatibility assumptions.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5306072429 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841). Originally posted by [B-Howell](https://github.com/B-Howell) on 2026-11-14T02:14:48Z. --- ### What Implements eight existing throwing `libSceNKWebKit` stubs on top of #19839, reusing its `PrintStream::printf` and vtable slots: - `printInternal(PrintStream&, signed char)`, `short`: `printf("%d", static_cast<int>(value))`; `unsigned char`, `unsigned short`: `printf("%u", static_cast<unsigned>(value))` - `long long`: `"%lld"`; `unsigned long long`: `"%llu"` - `float`: forwards to the `double` overload (`"%lf"`) - `ClockType`: `Wall`, `Monotonic` and `Approximate` are printed through `begin()`, `printInternal(const char*)`, `end()`; any other value throws where WebKit hits `RELEASE_ASSERT_NOT_REACHED()` Source: pinned [PrintStream.cpp](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WTF/wtf/PrintStream.cpp#L137-L185), [ClockType.cpp](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WTF/wtf/ClockType.cpp#L33-L47) and [ClockType.h](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WTF/wtf/ClockType.h#L32-L36). `ClockType` reuses the existing `WTF::ClockType` from `WtfTimeTypes.hpp`. The `bool` overload now shares the same begin/print/end helper. `tools/progress.py` libraries done: 15796 to 15804 (+8, 40.15% to 40.17%). ### Tested Ubuntu (WSL2), GCC, Release, Ninja. `tests/WtfPrintInternal.cpp` is extended: format and promoted value for each width (-128 signed char, 0xFF unsigned char, -32768 short, 0xFFFF unsigned short, INT64_MIN, UINT64_MAX), float 1.5f and 0.1f arrive as doubles with `"%lf"`, `ClockType` 0, 1 and 2 give `"%s"` with `Wall`, `Monotonic` and `Approximate` on the stream `begin()` returned with one `begin` and one `end` call, and `ClockType` 3 throws `std::invalid_argument` without touching the stream. - Without the implementation (#19839 head plus this test): the test does not build, `error: conflicting declaration of C function 'void _ZN3WTF13printInternalERNS_11PrintStreamEa(NKWebKit::WtfAbi::PrintStream&, signed char)'` against the throwing stub. - With it: `ctest -R '^nkwebkit_wtfprintinternal$'` passed 3/3; `ctest -R '^public_headers'` 65/65 passed. - 48ab60a8b3: comment-only changes to the `WtfPrintStream.cpp` notice (trailing space removed, `git diff -w` empty; source lines added). `git diff --check origin/main...HEAD` clean and `check_conventions.py --base origin/main` passed. - @JJenkx, Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release, 48ab60a8b3 merged onto main 955f51545f ([report](https://github.com/boykopovar/AnyPS5/pull/19841#issuecomment-6871130553)): `nkwebkit_wtfprintinternal` passed 3/3, none skipped. - @ycbuzi, full ctest on Windows Server 2022 and 2025 (GitHub-hosted, WinLibs GCC 15.2.0), 9487ff0c94 merged into main ([report](https://github.com/boykopovar/AnyPS5/pull/19841#issuecomment-6887191165)): no failures beyond those on main on the same machine. - e3e87ff47a: merged main d4a1472af9 and removed the stale `5913` count line in `docs/dev/debt/libSceNKWebKit.md` that the 78a67cc9b1 merge kept; doc-only, not rebuilt. `git diff --check origin/main...HEAD` clean and `check_conventions.py --base origin/main` passed. - Debt fragment `d0a3548e35`: merged main `c3d38470e0c` and moved this PR's debt edits into `docs/dev/debt/changes/claude-nkwebkit-wtf-print-internal-widths.md`; the debt files match main, and the fragment applied to main gives the same debt lines as the previous head. `debt_fold.py --check` and `check_conventions.py --base origin/main` pass. Documentation only, no build. - Main merge `19184ba244c` onto main `1d3c669c843`: conflict only in `Export.cpp` and `include/InventoryExports.hpp`, where #19380 removed the adjacent `PrintStream::end` and `StackBounds` stubs and this PR removes the `PrintStream::printf` stub; all three stubs are dropped. WSL2 Ubuntu, GCC, Release: `nkwebkit_wtf_tests` and `nkwebkit_wtfprintinternal_tests` built and `ctest -R '^(nkwebkit_wtf|nkwebkit_wtfprintinternal)$' --repeat until-fail:3` passed. `debt_fold.py --check` and `check_conventions.py --base origin/main` pass; the debt files match main. - Main merge `4a37dd6f1b1` onto main `e4936123117`: conflict only in `Export.cpp` and `include/InventoryExports.hpp`, where #24896 removed the adjacent `printInternal(PrintStream&, const StringImpl*)` stub and this PR removes the `RawPointer`, `ClockType` and `const char*` ones; all four stubs are dropped. #24896 also brought `WtfDumpAbi::PrintStream` (`src/WtfDumpStreamAbi.hpp`, from #21957), so `src/WtfPrintStreamAbi.hpp` now reuses that struct and its slot numbers instead of declaring a second `PrintStream`. Windows 11, WinLibs GCC 15.2.0 r7, Release: `nkwebkit_wtfprintinternal_tests`, `nkwebkit_wtfstringdump_tests` and `nkwebkit_wtftimedump_tests` built and passed 3/3. `debt_fold.py --check` and `check_conventions.py --base origin/main` pass; the debt files match main. - `3fa83936ae0`: merged #19839 `22bbab3beca` (main `29b14e4c5e4`). Conflicts only in `Export.cpp` and `include/InventoryExports.hpp`, where main removed the `ReadWriteLock` stubs and this PR removes the `ClockType` one; all are dropped. The merged base fragment `claude-nkwebkit-wtf-print-internal.md` is removed on this branch, since this PR's fragment already removes all of its rows, so `debt_fold.py --check` sees one fragment per entry. Windows 11, WinLibs GCC 15.2.0 r7, Release: `nkwebkit_wtfprintinternal`, `nkwebkit_wtfstringdump`, `nkwebkit_wtftimedump` and `nkwebkit_jscdumps` built and passed 3/3. `check_conventions.py --base origin/main` passes; the debt files match main. - `d3e00afff1d`: merged #19839 `d730f676242` (main `700fae94382`), no conflicts; it trial-merges cleanly onto main `6ef4f2f73b0`. Windows 11, WinLibs GCC 15.2.0 r7, Release: `nkwebkit_wtfprintinternal`, `nkwebkit_wtfmetaallocator`, `nkwebkit_wtfstringdump`, `nkwebkit_wtftext` and `nkwebkit_wtf` built and passed. `debt_fold.py --check` and `check_conventions.py --base origin/main` pass; the debt files match main. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #19839 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Formatted output now supports strings, characters, pointers, clock values, and numeric types. Invalid clock values are rejected. * **Tests** * Added coverage for formatting across supported value types and clock values, including invalid clock values. * **Documentation** * Added technical reference information on formatted output behavior and compatibility assumptions. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
PrivacyOnion commented 2026-11-14 02:21:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-14T02:21:06Z.

Review: CHANGES_REQUESTED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against a0e4fb84e3:

  • Conventions: tools/check_conventions.py passed; git diff --check reported whitespace errors.
  • Build: nkwebkit_wtfprintinternal_tests built cleanly.
  • CTest (nkwebkit_wtfprintinternal):
    1/1 Test #3941: nkwebkit_wtfprintinternal ........   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfString.cpp, core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp: Verified printInternal overloads for signed char, unsigned char, short, and unsigned short correctly promote and format with %d and %u matching WebKit PrintStream.cpp.
    • core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp: Verified long long and unsigned long long printInternal overloads use %lld and %llu, ensuring 64-bit integer correctness across LP64 and LLP64 platforms.
    • core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp: Verified printInternal for float explicitly casts to double and delegates to the double overload using %lf without precision truncation.
    • core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp: Verified WTF::ClockType prints Wall, Monotonic, and Approximate atomically via begin() and end() virtual slots and throws std::invalid_argument on invalid enum values matching RELEASE_ASSERT_NOT_REACHED().
    • core/libs/prx/libSceNKWebKit/Export.cpp and include/WtfExports.hpp: Verified all 8 export symbols are removed from throwing stubs in Export.cpp and declared with APS5_VABI in WtfExports.hpp.
    • core/libs/prx/libSceNKWebKit/tests/WtfPrintInternal.cpp: Verified test coverage exercises boundary values (-128, 0xFF, -32768, 0xFFFF, INT64_MIN, UINT64_MAX), float values, stream begin/end forwarding, and ClockType rejection.
  • Note: the AI-assisted checkbox can stay.

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5900824197 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841#pullrequestreview-5900824197). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-14T02:21:06Z. **Review:** CHANGES_REQUESTED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `a0e4fb84e3`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` reported whitespace errors. - **Build**: `nkwebkit_wtfprintinternal_tests` built cleanly. - **CTest** (`nkwebkit_wtfprintinternal`): ``` 1/1 Test #3941: nkwebkit_wtfprintinternal ........ Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfString.cpp`, `core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp: Verified printInternal overloads for signed char, unsigned char, short, and unsigned short correctly promote and format with %d and %u matching WebKit PrintStream.cpp. - core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp: Verified long long and unsigned long long printInternal overloads use %lld and %llu, ensuring 64-bit integer correctness across LP64 and LLP64 platforms. - core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp: Verified printInternal for float explicitly casts to double and delegates to the double overload using %lf without precision truncation. - core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp: Verified WTF::ClockType prints Wall, Monotonic, and Approximate atomically via begin() and end() virtual slots and throws std::invalid_argument on invalid enum values matching RELEASE_ASSERT_NOT_REACHED(). - core/libs/prx/libSceNKWebKit/Export.cpp and include/WtfExports.hpp: Verified all 8 export symbols are removed from throwing stubs in Export.cpp and declared with APS5_VABI in WtfExports.hpp. - core/libs/prx/libSceNKWebKit/tests/WtfPrintInternal.cpp: Verified test coverage exercises boundary values (-128, 0xFF, -32768, 0xFFFF, INT64_MIN, UINT64_MAX), float values, stream begin/end forwarding, and ClockType rejection. - Note: the AI-assisted checkbox can stay. Requesting changes for the points above.
PrivacyOnion commented 2026-11-14 23:54:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-14T23:54:24Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 9487ff0c94:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_wtfprintinternal_tests built cleanly.
  • CTest (nkwebkit_wtfprintinternal):
    1/1 Test #4094: nkwebkit_wtfprintinternal ........   Passed    0.14 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfString.cpp, core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified format specifiers and promotion rules in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp for signed char (%d), unsigned char (%u), short (%d), unsigned short (%u), long long (%lld), unsigned long long (%llu), float (%lf forwarded to double), and RawPointer (%p) against upstream WebKit Source/WTF/wtf/PrintStream.cpp.
    • Verified WTF::ClockType handling in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp: Wall, Monotonic, and Approximate delegate atomically via begin()/end(), while out-of-range values throw std::invalid_argument matching WebKit's RELEASE_ASSERT_NOT_REACHED() contract.
    • Verified vtable dispatch and SysV va_list handling in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp (slot 2 for vprintf, slot 4 for begin, slot 5 for end) under both Linux std::va_list and Windows __builtin_sysv_va_list for LP64/LLP64 portability.
    • Verified proper removal of all 19 implemented WTF stubs from core/libs/prx/libSceNKWebKit/Export.cpp and InventoryExports.hpp, along with exact matching NID table removals in docs/dev/debt/libSceNKWebKit.md.
    • Verified unit test coverage in core/libs/prx/libSceNKWebKit/tests/WtfPrintInternal.cpp exercising small integer boundaries (-128, 0xFF, -32768, 0xFFFF), 64-bit extremes (INT64_MIN, UINT64_MAX), float values, valid ClockType enum branches, and rejection of invalid ClockType without stream side-effects.
    • Verified compliance with AGENTS.md rules across all modified files: zero prohibited code comments, upstream Apple copyright notices preserved verbatim at top of files, and technical debt properly documented.
  • Note: the AI-assisted checkbox can stay.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5907978791 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841#pullrequestreview-5907978791). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-14T23:54:24Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `9487ff0c94`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_wtfprintinternal_tests` built cleanly. - **CTest** (`nkwebkit_wtfprintinternal`): ``` 1/1 Test #4094: nkwebkit_wtfprintinternal ........ Passed 0.14 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfString.cpp`, `core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified format specifiers and promotion rules in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp for signed char (%d), unsigned char (%u), short (%d), unsigned short (%u), long long (%lld), unsigned long long (%llu), float (%lf forwarded to double), and RawPointer (%p) against upstream WebKit Source/WTF/wtf/PrintStream.cpp. - Verified WTF::ClockType handling in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp: Wall, Monotonic, and Approximate delegate atomically via begin()/end(), while out-of-range values throw std::invalid_argument matching WebKit's RELEASE_ASSERT_NOT_REACHED() contract. - Verified vtable dispatch and SysV va_list handling in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp (slot 2 for vprintf, slot 4 for begin, slot 5 for end) under both Linux std::va_list and Windows __builtin_sysv_va_list for LP64/LLP64 portability. - Verified proper removal of all 19 implemented WTF stubs from core/libs/prx/libSceNKWebKit/Export.cpp and InventoryExports.hpp, along with exact matching NID table removals in docs/dev/debt/libSceNKWebKit.md. - Verified unit test coverage in core/libs/prx/libSceNKWebKit/tests/WtfPrintInternal.cpp exercising small integer boundaries (-128, 0xFF, -32768, 0xFFFF), 64-bit extremes (INT64_MIN, UINT64_MAX), float values, valid ClockType enum branches, and rejection of invalid ClockType without stream side-effects. - Verified compliance with AGENTS.md rules across all modified files: zero prohibited code comments, upstream Apple copyright notices preserved verbatim at top of files, and technical debt properly documented. - Note: the AI-assisted checkbox can stay. Looks Good To Me
PrivacyOnion commented 2026-11-15 04:48:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T04:48:45Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 36d4928e64:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_wtfprintinternal_tests built cleanly.
  • CTest (nkwebkit_wtfprintinternal):
    1/1 Test #4120: nkwebkit_wtfprintinternal ........   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfString.cpp, core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that integer promotion and format specifiers for signed char (_ZN3WTF13printInternalERNS_11PrintStreamEa), unsigned char (_ZN3WTF13printInternalERNS_11PrintStreamEh), short (_ZN3WTF13printInternalERNS_11PrintStreamEs), unsigned short (_ZN3WTF13printInternalERNS_11PrintStreamEt), long long (_ZN3WTF13printInternalERNS_11PrintStreamEx), and unsigned long long (_ZN3WTF13printInternalERNS_11PrintStreamEy) match upstream WebKit PrintStream.cpp exactly (%d/%u with static_cast/static_cast, and %lld/%llu for 64-bit types).
    • Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamEf cleanly widens float to double via static_cast before delegating to the double overload without precision truncation.
    • Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamENS_9ClockTypeE exhaustively handles WTF::ClockType::Wall, Monotonic, and Approximate via PrintAtomically, and throws std::invalid_argument without touching the stream for any out-of-range value where upstream WebKit hits RELEASE_ASSERT_NOT_REACHED().
    • Verified stream dispatch in PrintAtomically within core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp, confirming PrintStreamBegin (slot 4) and PrintStreamEnd (slot 5) are invoked symmetrically around the print call with the correct PrintStream receiver pointer.
    • Verified AGENTS.md comment policy across modified and newly added files (WtfPrintStream.cpp, WtfPrintStreamAbi.hpp, WtfExports.hpp, WtfStringAbi.hpp, WtfString.cpp, and tests/WtfPrintInternal.cpp), confirming zero disallowed comments exist and upstream copyright notices/pinned commit citations are kept intact.
    • Verified test assertions in core/libs/prx/libSceNKWebKit/tests/WtfPrintInternal.cpp (TestSmallIntegers, TestLongLong, TestFloat, TestClockType), confirming boundary values (-128, 0xFF, -32768, 0xFFFF, INT64_MIN, UINT64_MAX), subnormals/fractions, all three valid ClockType members, and invalid enum rejection are thoroughly exercised.
  • Note: the AI-assisted checkbox can stay.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5909146737 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841#pullrequestreview-5909146737). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-15T04:48:45Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `36d4928e64`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_wtfprintinternal_tests` built cleanly. - **CTest** (`nkwebkit_wtfprintinternal`): ``` 1/1 Test #4120: nkwebkit_wtfprintinternal ........ Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfString.cpp`, `core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that integer promotion and format specifiers for signed char (_ZN3WTF13printInternalERNS_11PrintStreamEa), unsigned char (_ZN3WTF13printInternalERNS_11PrintStreamEh), short (_ZN3WTF13printInternalERNS_11PrintStreamEs), unsigned short (_ZN3WTF13printInternalERNS_11PrintStreamEt), long long (_ZN3WTF13printInternalERNS_11PrintStreamEx), and unsigned long long (_ZN3WTF13printInternalERNS_11PrintStreamEy) match upstream WebKit PrintStream.cpp exactly (%d/%u with static_cast<int>/static_cast<unsigned>, and %lld/%llu for 64-bit types). - Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamEf cleanly widens float to double via static_cast<double> before delegating to the double overload without precision truncation. - Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamENS_9ClockTypeE exhaustively handles WTF::ClockType::Wall, Monotonic, and Approximate via PrintAtomically, and throws std::invalid_argument without touching the stream for any out-of-range value where upstream WebKit hits RELEASE_ASSERT_NOT_REACHED(). - Verified stream dispatch in PrintAtomically within core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp, confirming PrintStreamBegin (slot 4) and PrintStreamEnd (slot 5) are invoked symmetrically around the print call with the correct PrintStream receiver pointer. - Verified AGENTS.md comment policy across modified and newly added files (WtfPrintStream.cpp, WtfPrintStreamAbi.hpp, WtfExports.hpp, WtfStringAbi.hpp, WtfString.cpp, and tests/WtfPrintInternal.cpp), confirming zero disallowed comments exist and upstream copyright notices/pinned commit citations are kept intact. - Verified test assertions in core/libs/prx/libSceNKWebKit/tests/WtfPrintInternal.cpp (TestSmallIntegers, TestLongLong, TestFloat, TestClockType), confirming boundary values (-128, 0xFF, -32768, 0xFFFF, INT64_MIN, UINT64_MAX), subnormals/fractions, all three valid ClockType members, and invalid enum rejection are thoroughly exercised. - Note: the AI-assisted checkbox can stay. Looks Good To Me
PrivacyOnion commented 2026-11-15 08:37:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T08:37:13Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 78a67cc9b1:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_wtfprintinternal_tests built cleanly.
  • CTest (nkwebkit_wtfprintinternal):
    1/1 Test #4139: nkwebkit_wtfprintinternal ........   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfString.cpp, core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamEa, Eh, Es, and Et correctly promote signed/unsigned char and short to int and unsigned using "%d" and "%u" format specifiers matching upstream WebKit PrintStream.cpp.
    • Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamEx and Ey format 64-bit long long and unsigned long long with "%lld" and "%llu", and Ef safely promotes float to double via _ZN3WTF13printInternalERNS_11PrintStreamEd ("%lf").
    • Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamENS_9ClockTypeE atomic printing via PrintAtomically handles ClockType::Wall, Monotonic, and Approximate, and correctly throws std::invalid_argument on invalid enum values where WebKit asserts RELEASE_ASSERT_NOT_REACHED().
    • Verified that _WIN32 SysV ABI compatibility is preserved in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp through __builtin_sysv_va_list and __builtin_sysv_va_start/__builtin_sysv_va_end for guest vprintf calls.
    • Verified in core/libs/prx/libSceNKWebKit/src/WtfString.cpp and WtfStringAbi.hpp that CStringBytes safely checks value.buffer != nullptr and returns nullptr for empty strings without dereferencing null pointers.
    • Verified strict AGENTS.md compliance: no unauthorized comments in code (verbatim Apple copyright notice preserved with pinned commit 80f77e94c63ee7202eec3d4b5b1a021dd89011ba), technical debt properly documented in docs/dev/debt/libSceNKWebKit.md, and inventory exports correctly synchronized.
  • Note: the AI-assisted checkbox can stay.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5909874132 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841#pullrequestreview-5909874132). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-15T08:37:13Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `78a67cc9b1`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_wtfprintinternal_tests` built cleanly. - **CTest** (`nkwebkit_wtfprintinternal`): ``` 1/1 Test #4139: nkwebkit_wtfprintinternal ........ Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfString.cpp`, `core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamEa, Eh, Es, and Et correctly promote signed/unsigned char and short to int and unsigned using "%d" and "%u" format specifiers matching upstream WebKit PrintStream.cpp. - Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamEx and Ey format 64-bit long long and unsigned long long with "%lld" and "%llu", and Ef safely promotes float to double via _ZN3WTF13printInternalERNS_11PrintStreamEd ("%lf"). - Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamENS_9ClockTypeE atomic printing via PrintAtomically handles ClockType::Wall, Monotonic, and Approximate, and correctly throws std::invalid_argument on invalid enum values where WebKit asserts RELEASE_ASSERT_NOT_REACHED(). - Verified that _WIN32 SysV ABI compatibility is preserved in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp through __builtin_sysv_va_list and __builtin_sysv_va_start/__builtin_sysv_va_end for guest vprintf calls. - Verified in core/libs/prx/libSceNKWebKit/src/WtfString.cpp and WtfStringAbi.hpp that CStringBytes safely checks value.buffer != nullptr and returns nullptr for empty strings without dereferencing null pointers. - Verified strict AGENTS.md compliance: no unauthorized comments in code (verbatim Apple copyright notice preserved with pinned commit 80f77e94c63ee7202eec3d4b5b1a021dd89011ba), technical debt properly documented in docs/dev/debt/libSceNKWebKit.md, and inventory exports correctly synchronized. - Note: the AI-assisted checkbox can stay. Looks Good To Me
PrivacyOnion commented 2026-11-15 21:27:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T21:27:38Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against e3e87ff47a:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_wtfprintinternal_tests built cleanly.
  • CTest (nkwebkit_wtfprintinternal):
    1/1 Test #4275: nkwebkit_wtfprintinternal ........   Passed    0.02 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfString.cpp, core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamEa, Eh, Es, and Et promote signed/unsigned char and short to int and unsigned with "%d" and "%u" format specifiers matching upstream WebKit PrintStream.cpp.
    • Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamEx and Ey format 64-bit long long and unsigned long long with "%lld" and "%llu", and Ef delegates to _ZN3WTF13printInternalERNS_11PrintStreamEd ("%lf") after promoting float to double.
    • Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamENS_9ClockTypeE handles ClockType::Wall, Monotonic, and Approximate via PrintAtomically (begin/printInternal/end) and throws std::invalid_argument on out-of-range values where upstream hits RELEASE_ASSERT_NOT_REACHED().
    • Verified in core/libs/prx/libSceNKWebKit/Export.cpp, InventoryExports.hpp, and WtfExports.hpp that the newly implemented WTF::PrintStream and WTF::printInternal exports are removed from the unimplemented inventory stubs and declared with matching SysV ABI signatures.
    • Verified that the latest update (e3e87ff47a) cleanly resolves the merge conflict in docs/dev/debt/libSceNKWebKit.md and passes tools/check_conventions.py, git diff --check, and nkwebkit_wtfprintinternal CTest (including negative control).

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5913011677 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841#pullrequestreview-5913011677). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-15T21:27:38Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `e3e87ff47a`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_wtfprintinternal_tests` built cleanly. - **CTest** (`nkwebkit_wtfprintinternal`): ``` 1/1 Test #4275: nkwebkit_wtfprintinternal ........ Passed 0.02 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfString.cpp`, `core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamEa, Eh, Es, and Et promote signed/unsigned char and short to int and unsigned with "%d" and "%u" format specifiers matching upstream WebKit PrintStream.cpp. - Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamEx and Ey format 64-bit long long and unsigned long long with "%lld" and "%llu", and Ef delegates to _ZN3WTF13printInternalERNS_11PrintStreamEd ("%lf") after promoting float to double. - Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamENS_9ClockTypeE handles ClockType::Wall, Monotonic, and Approximate via PrintAtomically (begin/printInternal/end) and throws std::invalid_argument on out-of-range values where upstream hits RELEASE_ASSERT_NOT_REACHED(). - Verified in core/libs/prx/libSceNKWebKit/Export.cpp, InventoryExports.hpp, and WtfExports.hpp that the newly implemented WTF::PrintStream and WTF::printInternal exports are removed from the unimplemented inventory stubs and declared with matching SysV ABI signatures. - Verified that the latest update (e3e87ff47a) cleanly resolves the merge conflict in docs/dev/debt/libSceNKWebKit.md and passes tools/check_conventions.py, git diff --check, and nkwebkit_wtfprintinternal CTest (including negative control). Looks Good To Me
PrivacyOnion commented 2026-11-15 23:07:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T23:07:31Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against d0a3548e35:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_wtfprintinternal_tests built cleanly.
  • CTest (nkwebkit_wtfprintinternal):
    1/1 Test #4279: nkwebkit_wtfprintinternal ........   Passed    0.02 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfString.cpp, core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamEa, Eh, Es, and Et promote signed/unsigned char and short to int and unsigned with "%d" and "%u" format specifiers matching upstream WebKit PrintStream.cpp.
    • Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamEx and Ey format 64-bit long long and unsigned long long with "%lld" and "%llu", and Ef delegates to _ZN3WTF13printInternalERNS_11PrintStreamEd ("%lf") after promoting float to double.
    • Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamENS_9ClockTypeE handles ClockType::Wall, Monotonic, and Approximate via PrintAtomically (begin/printInternal/end) and throws std::invalid_argument on out-of-range values where upstream hits RELEASE_ASSERT_NOT_REACHED().
    • Verified in core/libs/prx/libSceNKWebKit/Export.cpp, InventoryExports.hpp, and WtfExports.hpp that the newly implemented WTF::PrintStream and WTF::printInternal exports are removed from the unimplemented inventory stubs and declared with matching SysV ABI signatures.
    • Verified that the latest update (d0a3548e35) cleanly moves the technical debt entry and inventory row removals into docs/dev/debt/changes/claude-nkwebkit-wtf-print-internal-widths.md and passes tools/check_conventions.py, git diff --check, and nkwebkit_wtfprintinternal CTest (including negative control).

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5913406081 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841#pullrequestreview-5913406081). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-15T23:07:31Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `d0a3548e35`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_wtfprintinternal_tests` built cleanly. - **CTest** (`nkwebkit_wtfprintinternal`): ``` 1/1 Test #4279: nkwebkit_wtfprintinternal ........ Passed 0.02 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfString.cpp`, `core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamEa, Eh, Es, and Et promote signed/unsigned char and short to int and unsigned with "%d" and "%u" format specifiers matching upstream WebKit PrintStream.cpp. - Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamEx and Ey format 64-bit long long and unsigned long long with "%lld" and "%llu", and Ef delegates to _ZN3WTF13printInternalERNS_11PrintStreamEd ("%lf") after promoting float to double. - Verified in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp that _ZN3WTF13printInternalERNS_11PrintStreamENS_9ClockTypeE handles ClockType::Wall, Monotonic, and Approximate via PrintAtomically (begin/printInternal/end) and throws std::invalid_argument on out-of-range values where upstream hits RELEASE_ASSERT_NOT_REACHED(). - Verified in core/libs/prx/libSceNKWebKit/Export.cpp, InventoryExports.hpp, and WtfExports.hpp that the newly implemented WTF::PrintStream and WTF::printInternal exports are removed from the unimplemented inventory stubs and declared with matching SysV ABI signatures. - Verified that the latest update (d0a3548e35) cleanly moves the technical debt entry and inventory row removals into docs/dev/debt/changes/claude-nkwebkit-wtf-print-internal-widths.md and passes tools/check_conventions.py, git diff --check, and nkwebkit_wtfprintinternal CTest (including negative control). Looks Good To Me
MarcZX10 commented 2026-11-16 21:14:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T21:14:54Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the review bundle documents successful targeted and cross-platform checks, and the inspected implementation matches the stated scalar formatting behavior.

What I ran

Reviewed head d0a3548e35649fb0e68fbea255889f19b75ef789. No commands or tests were run in this review session. The author reports nkwebkit_wtfprintinternal passing on Ubuntu and Windows, and broader checks in the PR description; those results were not independently run here.

Results

Check Result Note
Prepared diff and scalar implementations passed Behavior and tests inspected
Reported build and test checks not run Author-reported only
Full changed-file review not run Two oversized files excluded

Findings

Blocking

None found in the inspected code.

Non-blocking

None.

Not verified

core/libs/prx/libSceNKWebKit/Export.cpp and core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp were excluded from the review bundle because they were too large; their diff hunks were inspected, but their complete head contents were not read. No repository checks were run. Read: WtfExports.hpp, WtfPrintStream.cpp, WtfPrintStreamAbi.hpp, WtfString.cpp, WtfStringAbi.hpp, tests/WtfPrintInternal.cpp, WtfTimeTypes.hpp, plus the prepared description, commits, manifest, and diff. The author-reported test and build outcomes were not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5927816427 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841#pullrequestreview-5927816427). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T21:14:54Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the review bundle documents successful targeted and cross-platform checks, and the inspected implementation matches the stated scalar formatting behavior. ## What I ran Reviewed head `d0a3548e35649fb0e68fbea255889f19b75ef789`. No commands or tests were run in this review session. The author reports `nkwebkit_wtfprintinternal` passing on Ubuntu and Windows, and broader checks in the PR description; those results were not independently run here. ## Results | Check | Result | Note | |---|---|---| | Prepared diff and scalar implementations | passed | Behavior and tests inspected | | Reported build and test checks | not run | Author-reported only | | Full changed-file review | not run | Two oversized files excluded | ## Findings ### Blocking None found in the inspected code. ### Non-blocking None. ## Not verified `core/libs/prx/libSceNKWebKit/Export.cpp` and `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp` were excluded from the review bundle because they were too large; their diff hunks were inspected, but their complete head contents were not read. No repository checks were run. Read: `WtfExports.hpp`, `WtfPrintStream.cpp`, `WtfPrintStreamAbi.hpp`, `WtfString.cpp`, `WtfStringAbi.hpp`, `tests/WtfPrintInternal.cpp`, `WtfTimeTypes.hpp`, plus the prepared description, commits, manifest, and diff. The author-reported test and build outcomes were not independently verified. ## To get this to a good state Nothing is required.
PrivacyOnion commented 2026-11-16 22:18:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T22:18:39Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 19184ba244:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_wtfprintinternal_tests built cleanly.
  • CTest (nkwebkit_wtfprintinternal):
    1/1 Test #4412: nkwebkit_wtfprintinternal ........   Passed    0.02 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfString.cpp, core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp, core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified WtfExports.hpp and Export.cpp export symbol names and signatures for signed/unsigned char, short, long long, float, and ClockType match upstream WTF PrintStream mangled names (_ZN3WTF13printInternalERNS_11PrintStreamE{a,h,s,t,x,y,f,NS_9ClockTypeE}).
    • Verified WtfPrintStream.cpp implementation delegates formatting of narrow integers (signed/unsigned char, short) via static_cast to int/unsigned and long long via %lld/%llu.
    • Verified WtfPrintStream.cpp float overload delegates to double overload static_cast(value) using %lf.
    • Verified ClockType handling correctly prints 'Wall', 'Monotonic', and 'Approximate' via atomic PrintStream begin/end and throws std::invalid_argument for out-of-range values matching RELEASE_ASSERT_NOT_REACHED().
    • Verified docs/dev/debt/changes/claude-nkwebkit-wtf-print-internal-widths.md properly records technical debt additions and inventory removals per AGENTS.md conventions.
    • Verified cross-platform SysV va_list handling in PrintStream::printf for Linux and Windows builds.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5928806573 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841#pullrequestreview-5928806573). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-16T22:18:39Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `19184ba244`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_wtfprintinternal_tests` built cleanly. - **CTest** (`nkwebkit_wtfprintinternal`): ``` 1/1 Test #4412: nkwebkit_wtfprintinternal ........ Passed 0.02 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfString.cpp`, `core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified WtfExports.hpp and Export.cpp export symbol names and signatures for signed/unsigned char, short, long long, float, and ClockType match upstream WTF PrintStream mangled names (_ZN3WTF13printInternalERNS_11PrintStreamE{a,h,s,t,x,y,f,NS_9ClockTypeE}). - Verified WtfPrintStream.cpp implementation delegates formatting of narrow integers (signed/unsigned char, short) via static_cast to int/unsigned and long long via %lld/%llu. - Verified WtfPrintStream.cpp float overload delegates to double overload static_cast<double>(value) using %lf. - Verified ClockType handling correctly prints 'Wall', 'Monotonic', and 'Approximate' via atomic PrintStream begin/end and throws std::invalid_argument for out-of-range values matching RELEASE_ASSERT_NOT_REACHED(). - Verified docs/dev/debt/changes/claude-nkwebkit-wtf-print-internal-widths.md properly records technical debt additions and inventory removals per AGENTS.md conventions. - Verified cross-platform SysV va_list handling in PrintStream::printf for Linux and Windows builds. Looks Good To Me
MarcZX10 commented 2026-11-16 22:24:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T22:24:05Z.

Review: COMMENTED


Reviewed — no blocking findings

The inspected changes are consistent with the stated goal, but I could not run the reported checks on this head.

What I ran

Inspected head 19184ba244cd6ccdd147b136cfee304a6f6c2191 using the review reader. Read the prepared description, commits, manifest and full diff, plus targeted code in every changed file. No build or test command was run.

Results

Check Result Note
Code review passed Changed code inspected
Build and tests not run Reported results not independently verified

Negative Control

Not run; no test execution environment was available.

Findings

Blocking

None.

Non-blocking

None.

Sources

Behavior and implementation reviewed at the pinned head: WtfPrintStream.cpp, WtfPrintStreamAbi.hpp, and WtfPrintInternal.cpp.

Not verified

The author-reported Linux and Windows checks were not run by me; console behavior was not tested. Read the changed files listed in the manifest: Export.cpp, InventoryExports.hpp, WtfExports.hpp, WtfPrintStream.cpp, WtfPrintStreamAbi.hpp, WtfString.cpp, WtfStringAbi.hpp, WtfPrintInternal.cpp, and the debt change fragment. No changed files were excluded from review; large repository files were read around the changed regions.

To get this to a good state

Nothing is required. Optionally, rerun the reported checks on this exact head before merge.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5928886311 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841#pullrequestreview-5928886311). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T22:24:05Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The inspected changes are consistent with the stated goal, but I could not run the reported checks on this head. ## What I ran Inspected head `19184ba244cd6ccdd147b136cfee304a6f6c2191` using the review reader. Read the prepared description, commits, manifest and full diff, plus targeted code in every changed file. No build or test command was run. ## Results | Check | Result | Note | |---|---|---| | Code review | passed | Changed code inspected | | Build and tests | not run | Reported results not independently verified | ## Negative Control Not run; no test execution environment was available. ## Findings ### Blocking None. ### Non-blocking None. ## Sources Behavior and implementation reviewed at the pinned head: [WtfPrintStream.cpp](https://github.com/boykopovar/AnyPS5/blob/19184ba244cd6ccdd147b136cfee304a6f6c2191/core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp), [WtfPrintStreamAbi.hpp](https://github.com/boykopovar/AnyPS5/blob/19184ba244cd6ccdd147b136cfee304a6f6c2191/core/libs/prx/libSceNKWebKit/src/WtfPrintStreamAbi.hpp), and [WtfPrintInternal.cpp](https://github.com/boykopovar/AnyPS5/blob/19184ba244cd6ccdd147b136cfee304a6f6c2191/core/libs/prx/libSceNKWebKit/tests/WtfPrintInternal.cpp). ## Not verified The author-reported Linux and Windows checks were not run by me; console behavior was not tested. Read the changed files listed in the manifest: `Export.cpp`, `InventoryExports.hpp`, `WtfExports.hpp`, `WtfPrintStream.cpp`, `WtfPrintStreamAbi.hpp`, `WtfString.cpp`, `WtfStringAbi.hpp`, `WtfPrintInternal.cpp`, and the debt change fragment. No changed files were excluded from review; large repository files were read around the changed regions. ## To get this to a good state Nothing is required. Optionally, rerun the reported checks on this exact head before merge.
MarcZX10 commented 2026-11-22 12:31:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T12:31:11Z.

Review: COMMENTED


Reviewed — comments

The implementation and targeted tests look consistent with the stated behavior; I could not verify two changed files excluded from the review folder or run checks on this revision.

What I ran

  • Read the prepared diff and source at head 4a37dd6f1b1ac64f9b0728701def156bb541e6b3 using repo_read.py.
  • No build or tests run in this review; commands are not available through the provided reader.

Results

Check Result Note
Diff and targeted source review passed Implementations and tests inspected
Build and tests not run Author-reported results only
Excluded changed files not run Full text unavailable in review folder

Findings

Blocking

None identified in the inspected source.

Non-blocking

None.

Not verified

  • core/libs/prx/libSceNKWebKit/Export.cpp and core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp are excluded as too large; their diff hunks were read, but their full text was not.
  • No local commands were run. The build and test results in the PR description are author-reported, not independently verified.
  • Files read: review/description.md, review/commits.md, review/manifest.json, review/diff.patch, core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp, core/libs/prx/libSceNKWebKit/src/WtfPrintStreamAbi.hpp, core/libs/prx/libSceNKWebKit/src/WtfDumpStreamAbi.hpp, core/libs/prx/libSceNKWebKit/src/WtfString.cpp (targeted range), core/libs/prx/libSceNKWebKit/include/WtfExports.hpp (targeted range), and core/libs/prx/libSceNKWebKit/tests/WtfPrintInternal.cpp.
  • core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp and docs/dev/debt/changes/claude-nkwebkit-wtf-print-internal-widths.md were not read from the repository head. Manifest-listed exclusions: Export.cpp and InventoryExports.hpp.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6012239581 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841#pullrequestreview-6012239581). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T12:31:11Z. **Review:** COMMENTED --- # Reviewed — comments The implementation and targeted tests look consistent with the stated behavior; I could not verify two changed files excluded from the review folder or run checks on this revision. ## What I ran - Read the prepared diff and source at head `4a37dd6f1b1ac64f9b0728701def156bb541e6b3` using `repo_read.py`. - No build or tests run in this review; commands are not available through the provided reader. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | Implementations and tests inspected | | Build and tests | not run | Author-reported results only | | Excluded changed files | not run | Full text unavailable in review folder | ## Findings ### Blocking None identified in the inspected source. ### Non-blocking None. ## Not verified - `core/libs/prx/libSceNKWebKit/Export.cpp` and `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp` are excluded as too large; their diff hunks were read, but their full text was not. - No local commands were run. The build and test results in the PR description are author-reported, not independently verified. - Files read: `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/diff.patch`, `core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp`, `core/libs/prx/libSceNKWebKit/src/WtfPrintStreamAbi.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfDumpStreamAbi.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfString.cpp` (targeted range), `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp` (targeted range), and `core/libs/prx/libSceNKWebKit/tests/WtfPrintInternal.cpp`. - `core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp` and `docs/dev/debt/changes/claude-nkwebkit-wtf-print-internal-widths.md` were not read from the repository head. Manifest-listed exclusions: `Export.cpp` and `InventoryExports.hpp`. ## To get this to a good state Nothing is required.
PrivacyOnion commented 2026-11-27 14:16:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-27T14:16:15Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 4a37dd6f1b:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_wtfprintinternal_tests built cleanly.
  • CTest (nkwebkit_wtfprintinternal):
    1/1 Test #5478: nkwebkit_wtfprintinternal ........   Passed    0.02 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfString.cpp, core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp, core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp format strings (%d, %u, %lld, %llu, %lf, %p, %c, %s) and static_cast promotion for signed char, unsigned char, short, unsigned short, float, and ClockType.
    • Verified LP64 vs LLP64 portability: on Windows/MSVC long is 32-bit while PS5/SysV ABI specifies long as 64-bit; checked definitions of printInternal for std::int64_t (%ld) and long long (%lld) across platforms.
    • Verified ClockType enum handling matches upstream WTF ClockType.cpp: Wall, Monotonic, Approximate are handled and unknown/out-of-range values throw std::invalid_argument.
    • Verified CStringBytes null checks and memory safety in WtfPrintStream.cpp and WtfString.cpp; verified no buffer overruns or invalid pointer dereferences.
    • Verified AGENTS.md compliance: check_conventions.py passed, no banned comments, no stray files, and technical debt fragment added in docs/dev/debt/changes/.
    • Verified tests/WtfPrintInternal.cpp coverage for all implemented overloads including signed/unsigned char, short, long long, float, ClockType valid and invalid values.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6089477845 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841#pullrequestreview-6089477845). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-27T14:16:15Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `4a37dd6f1b`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_wtfprintinternal_tests` built cleanly. - **CTest** (`nkwebkit_wtfprintinternal`): ``` 1/1 Test #5478: nkwebkit_wtfprintinternal ........ Passed 0.02 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfString.cpp`, `core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp format strings (%d, %u, %lld, %llu, %lf, %p, %c, %s) and static_cast promotion for signed char, unsigned char, short, unsigned short, float, and ClockType. - Verified LP64 vs LLP64 portability: on Windows/MSVC long is 32-bit while PS5/SysV ABI specifies long as 64-bit; checked definitions of printInternal for std::int64_t (%ld) and long long (%lld) across platforms. - Verified ClockType enum handling matches upstream WTF ClockType.cpp: Wall, Monotonic, Approximate are handled and unknown/out-of-range values throw std::invalid_argument. - Verified CStringBytes null checks and memory safety in WtfPrintStream.cpp and WtfString.cpp; verified no buffer overruns or invalid pointer dereferences. - Verified AGENTS.md compliance: check_conventions.py passed, no banned comments, no stray files, and technical debt fragment added in docs/dev/debt/changes/. - Verified tests/WtfPrintInternal.cpp coverage for all implemented overloads including signed/unsigned char, short, long long, float, ClockType valid and invalid values. Looks Good To Me
PrivacyOnion commented 2026-11-28 09:50:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-28T09:50:07Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 3fa83936ae:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_wtfprintinternal_tests built cleanly.
  • CTest (nkwebkit_wtfprintinternal):
    1/1 Test #5585: nkwebkit_wtfprintinternal ........   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfString.cpp, core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp, core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified format specifiers and integer promotion for all scalar types in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp (%d for signed char/short, %u for unsigned char/short, %lld for long long, %llu for unsigned long long, %lf for float/double).
    • Verified ClockType enum handling matches upstream WTF ClockType.cpp, handling Wall, Monotonic, and Approximate, while throwing std::invalid_argument for unhandled/out-of-range values.
    • Verified PrintAtomically helper properly dispatches begin/end vtable slots and passes the formatted string to WTF::printInternal(PrintStream&, const char*).
    • Verified LP64 vs LLP64 portability: printf uses %lld/%llu for long long, %ld/%lu for std::int64_t/std::uint64_t, and handles Windows vs SysV va_list via __builtin_sysv_va_list correctly.
    • Verified AGENTS.md compliance: check_conventions.py passed, no disallowed comments, technical debt fragment correctly placed in docs/dev/debt/changes/, and stub exports removed from InventoryExports.hpp and Export.cpp.
    • Verified tests in tests/WtfPrintInternal.cpp thoroughly test all new overloads including boundary values (INT64_MIN, UINT64_MAX, -128, 0xFF, -32768, 0xFFFF), float values, and invalid ClockType exception throwing.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6097110971 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841#pullrequestreview-6097110971). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-28T09:50:07Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `3fa83936ae`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_wtfprintinternal_tests` built cleanly. - **CTest** (`nkwebkit_wtfprintinternal`): ``` 1/1 Test #5585: nkwebkit_wtfprintinternal ........ Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfString.cpp`, `core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified format specifiers and integer promotion for all scalar types in core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp (%d for signed char/short, %u for unsigned char/short, %lld for long long, %llu for unsigned long long, %lf for float/double). - Verified ClockType enum handling matches upstream WTF ClockType.cpp, handling Wall, Monotonic, and Approximate, while throwing std::invalid_argument for unhandled/out-of-range values. - Verified PrintAtomically helper properly dispatches begin/end vtable slots and passes the formatted string to WTF::printInternal(PrintStream&, const char*). - Verified LP64 vs LLP64 portability: printf uses %lld/%llu for long long, %ld/%lu for std::int64_t/std::uint64_t, and handles Windows vs SysV va_list via __builtin_sysv_va_list correctly. - Verified AGENTS.md compliance: check_conventions.py passed, no disallowed comments, technical debt fragment correctly placed in docs/dev/debt/changes/, and stub exports removed from InventoryExports.hpp and Export.cpp. - Verified tests in tests/WtfPrintInternal.cpp thoroughly test all new overloads including boundary values (INT64_MIN, UINT64_MAX, -128, 0xFF, -32768, 0xFFFF), float values, and invalid ClockType exception throwing. Looks Good To Me
MarcZX10 commented 2026-11-28 10:00:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T10:00:02Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change; the inspected implementation and reported checks support merging.

What I ran

Reviewed head 3fa83936ae0185f1a1bbeeb0ab4018882858939e. I read the prepared description, commits, manifest, and diff, then inspected the implementation, ABI declarations, related string code, test, and target registration using repo_read.py. No commands or tests were run in this review.

Results

Check Result Note
Code and ABI review passed No concrete defect found in inspected logic
Reported checks not run Build and test results are author reported
Changed-file coverage not run Full review completeness not established

Findings

Blocking

None.

Non-blocking

None.

Not verified

The files.json exclusion list was unavailable through the reader. Export.cpp is marked excluded in the manifest and was read only around the affected stub region; InventoryExports.hpp was read only around the changed declarations. I did not read the full text of every file listed as reviewed in the manifest, inspect other changed-file context beyond the targeted ranges, or independently run the reported tests and checks. The cited Ubuntu and Windows results are author reported.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6097154335 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841#pullrequestreview-6097154335). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-28T10:00:02Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change; the inspected implementation and reported checks support merging. ## What I ran Reviewed head `3fa83936ae0185f1a1bbeeb0ab4018882858939e`. I read the prepared description, commits, manifest, and diff, then inspected the implementation, ABI declarations, related string code, test, and target registration using `repo_read.py`. No commands or tests were run in this review. ## Results | Check | Result | Note | |---|---|---| | Code and ABI review | passed | No concrete defect found in inspected logic | | Reported checks | not run | Build and test results are author reported | | Changed-file coverage | not run | Full review completeness not established | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The `files.json` exclusion list was unavailable through the reader. `Export.cpp` is marked excluded in the manifest and was read only around the affected stub region; `InventoryExports.hpp` was read only around the changed declarations. I did not read the full text of every file listed as reviewed in the manifest, inspect other changed-file context beyond the targeted ranges, or independently run the reported tests and checks. The cited Ubuntu and Windows results are author reported. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 13:00:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T13:00:49Z.

Review: COMMENTED


Built the exact changed sources and ran WtfPrintInternal on Linux against the existing WebKit runtime. The fixture passed, including the format and value checks for the new scalar variants.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6170297382 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841#pullrequestreview-6170297382). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T13:00:49Z. **Review:** COMMENTED --- Built the exact changed sources and ran `WtfPrintInternal` on Linux against the existing WebKit runtime. The fixture passed, including the format and value checks for the new scalar variants. AI-assisted: yes.
MarcZX10 commented 2026-12-03 22:21:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T22:21:30Z.

Review: APPROVED


Reviewed — looks good

The reviewed change at d3e00afff1d9e0312fa4dc730fe830f34f7adddf implements the listed WTF print overloads, and the inspected code supports approval.

What I ran

Read the prepared diff and review metadata, then inspected the changed code and relevant ABI types through repo_read.py. No tests, builds, or merged-preview checks were run; no local toolchain was invoked.

python3 repo_read.py cat core/libs/prx/libSceNKWebKit/Export.cpp 11350 11470
python3 repo_read.py cat core/libs/prx/libSceNKWebKit/src/WtfDumpStreamAbi.hpp 1 200
python3 repo_read.py cat core/libs/prx/libSceNKWebKit/src/WtfTimeTypes.hpp 1 80

Results

Check Result Note
Changed code review passed Read 9 of 9 reviewed files
PR tests not run Results in description are author-reported
Merged preview not run No local merge check

Negative control

Not run; no source changes or tests were performed during this review.

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

Tests reported in the description, Windows and console behavior, and a merged preview were not independently verified. No files were excluded by the prepared review manifest.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6179630377 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19841#pullrequestreview-6179630377). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-03T22:21:30Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed change at `d3e00afff1d9e0312fa4dc730fe830f34f7adddf` implements the listed WTF print overloads, and the inspected code supports approval. ## What I ran Read the prepared diff and review metadata, then inspected the changed code and relevant ABI types through `repo_read.py`. No tests, builds, or merged-preview checks were run; no local toolchain was invoked. ```text python3 repo_read.py cat core/libs/prx/libSceNKWebKit/Export.cpp 11350 11470 python3 repo_read.py cat core/libs/prx/libSceNKWebKit/src/WtfDumpStreamAbi.hpp 1 200 python3 repo_read.py cat core/libs/prx/libSceNKWebKit/src/WtfTimeTypes.hpp 1 80 ``` ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Read 9 of 9 reviewed files | | PR tests | not run | Results in description are author-reported | | Merged preview | not run | No local merge check | ## Negative control Not run; no source changes or tests were performed during this review. ## Findings ### Blocking None. ### Non-blocking None. ## Sources - [WtfPrintStream.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/d3e00afff1d9e0312fa4dc730fe830f34f7adddf/core/libs/prx/libSceNKWebKit/src/WtfPrintStream.cpp) implements the format forwarding, integer promotions, float forwarding, and ClockType handling. - [WtfPrintStreamAbi.hpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/d3e00afff1d9e0312fa4dc730fe830f34f7adddf/core/libs/prx/libSceNKWebKit/src/WtfPrintStreamAbi.hpp) reuses the inspected PrintStream layout and slot declarations. ## Not verified Tests reported in the description, Windows and console behavior, and a merged preview were not independently verified. No files were excluded by the prepared review manifest. ## To get this to a good state Nothing is required.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!19841
No description provided.