feat(libSceNKWebKit): implement string code unit comparison #14164
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14164"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by CobaltMoth482 on 2026-10-31T21:46:18Z.
What
Implement the two existing WTF::codePointCompare exports for StringView and String const&, replacing throwing placeholders. Primary source: official WebKit commit 0756854fafd4312b8f0126de111792e39db106ef, StringImpl.h, StringView.cpp and WTFString.cpp.
Despite their name, these compare unsigned code units, not decoded Unicode scalars. Results are exactly -1/0/+1. Embedded NUL and malformed surrogates are ordinary units; mixed widths are widened independently; equal prefixes order by length. Null String implementations compare as empty. Existing String/StringView/StringImpl types are reused without ownership or refcount changes.
NIDs: PAp-xS1m7bI (StringView pair), qpi9pgZKF5g (String references). On the same main baseline, libSceNKWebKit progresses 1,150→1,152/11,248, 10.2240%→10.2418%, +2 exports, +0.01778 percentage points. This excludes the separate unmerged geometry work in #14138.
Console ABI and version equivalence are unverified. A null character buffer throws when the common length is nonzero, where upstream would dereference invalid memory; the debt entry records this safety divergence. No new dependency or runtime data is introduced.
Tested
Local candidate b9bd04ace08eb84b4d924371c4f6dfd3fd174b18, based on main
c48c5da86e.The mandatory CLI was attempted but gh authentication is unavailable. An external adapter supplied all 1,689 current open PR records fetched through the approved GitHub connector to the repository's unchanged overlap algorithms; all heads were fetched/probed. The scan exited 2 for four preexisting peer conflicts and reported six debt-line overlaps. Manual review of all eleven shared-file peers found no duplicate comparator names/NIDs or new-file collisions. Fifty-six paired three-way controls across 28 shared files confirm no new source/header conflicts. Conflicts introduced against peers are confined to the aggregate debt counter and, with #14138, adjacent distinct debt paragraphs. Preserve both paragraphs and recount when either lands first. No functional dependency; this is not a clean official CLI pass.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-11-01T19:49:34Z.
Review: COMMENTED
Withdrawn. This review applied a title-ID/log requirement that is not in CONTRIBUTING (
Unblocks: noneis allowed), and it contained no code review.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T08:45:20Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the available evidence supports merging, with console ABI equivalence still unverified.
What I ran
Reviewed head
5b2964a75ca6d5fa9415b054f312cea45f9a0f20. I read the prepared description, commits, manifest, diff, the changed comparator source, its public declarations, string ABI types, and the library CMake test setup. No commands or tests were run in this review; test results below are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I did not read the full text of
Export.cpp,InventoryExports.hpp, ordocs/dev/debt/libSceNKWebKit.md; their changed hunks were reviewed in the prepared diff. I did not read the remaining test file beyond its diff, run tests, verify author-reported measurements, or validate console ABI/version equivalence. Manifest lists 6 changed files: 3 full texts were included and read (WtfExports.hpp,WtfCodePointCompare.cpp, and its test); 3 were excluded as too large (Export.cpp,InventoryExports.hpp, and the debt document). The diff was available for all six.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-29T23:34:30Z.
Review: COMMENTED
Actionable comments posted: 2
Architecture findings (1)
Advisory architecture findings (1)
8f72645e-34cb-45d2-9467-296ce7907593Reviewing files that changed from the base of the PR and between
29e4640295and7a7727555b.core/libs/prx/libSceNKWebKit/Export.cppcore/libs/prx/libSceNKWebKit/include/InventoryExports.hppcore/libs/prx/libSceNKWebKit/include/WtfExports.hppcore/libs/prx/libSceNKWebKit/src/WtfCodePointCompare.cppcore/libs/prx/libSceNKWebKit/tests/WtfCodePointCompare.cppdocs/dev/debt/libSceNKWebKit.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T23:44:31Z.
Review: COMMENTED
Reviewed — no blocking findings
The comparison implementation follows the described unsigned code unit ordering; no blocking defect was verified in the files reviewed.
What I ran
Reviewed head
7a7727555b4c62b8ab76743b65e9d3a8028c61aeusing the prepared diff and repository reader. No commands or tests were run by me.Results
Findings
Blocking
None verified in the files reviewed.
Non-blocking
None.
Not verified
The full contents of
core/libs/prx/libSceNKWebKit/Export.cppanddocs/dev/debt/libSceNKWebKit.mdwere excluded from the review folder and were not read. Tests and reported build checks were not independently run. Console ABI behavior is unverified, as noted in the PR description.To get this to a good state
Nothing is required.