feat(libSceNKWebKit): implement 35 constructors that install a vtable rebuilt from the module #23482

Closed
RiverWhy wants to merge 5 commits from upstream-pr/23482 into main
RiverWhy commented 2026-11-19 04:22:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by RiverWhy on 2026-11-19T04:22:27Z.


What

Implements 35 libSceNKWebKit constructors and copy constructors whose module body only installs the class vtable and stores constant field values. One of them also copies one field. All 35 throw NotImplemented on main today.

Source: the libSceNKWebKit.sprx with SHA-256 3af992253665387feeb5df90ff27dff683e3aa270cc4d92a0535b46ab18fa20d (the module the existing Constant-return exports debt entry reads as 11.00). For each constructor I read the body, followed its lea to the class vtable and rebuilt the vtable slot by slot from the module's relocations:

  • Pure virtual (an import whose NID is __cxa_pure_virtual): points to __cxa_pure_virtual_nid_postfix, as #22682 does.
  • Export with a known name: points to that AnyPS5 export, whether it's implemented or still a stub.
  • Internal body ret, xor eax,eax; ret or mov rax,rdi; mov qword [rdi],0; ret: points to one of four local helpers with the same behaviour.

Offset-to-top and type info are 0, as in the module (it is built without RTTI). The vtables are emitted as assembly .quad tables, the way ForwardExports.cpp emits its tail jumps, so slots can point at exports whose AnyPS5 placeholder declarations have other types.

Class Constructors Slots Pure Named exports Reproduced bodies
JSC::WeakHandleOwner 4 4 0 3 1
JSC::TypedArrayController 1 5 3 2 0
WTF::FunctionDispatcher 1 3 1 2 0
WebCore::MIMETypeCache 2 9 0 7 2
WebCore::XPathNSResolver 1 3 1 2 0
WebCore::BlobRegistryImpl 2 2 0 2 0
WebCore::VisitedLinkStore 1 4 2 2 0
WebCore::FrameLoaderClient 2 135 97 36 2
WebCore::LibWebRTCProvider 4 4 0 3 1
WebCore::PluginInfoProvider 1 5 3 2 0
WebCore::UserContentProvider 1 4 2 2 0
WebCore::EmptyFrameLoaderClient 4 135 0 121 14
WebCore::StorageNamespaceProvider 1 5 3 2 0
WebCore::ContentSecurityPolicyClient 2 6 3 3 0
WebCore::InspectorFrontendClientLocal::Settings 4 5 0 5 0
Inspector::RemoteInspector::Client 2 8 3 4 1
Inspector::RemoteControllableTarget 2 7 5 2 0

The constructors themselves are generated from their decoded bodies: the vtable store, movl $1 reference counts, movb $0/movq $0 member clears and 16-byte vmovups clears. RemoteControllableTarget's copy constructor also copies the 32-bit field at 8 from the source. The generator refuses any instruction outside that set. A null object (and, for that copy, a null source) throws.

Left out, because at least one vtable slot points at module code AnyPS5 doesn't have (an allocation, a call into an internal function, and so on): LoaderStrategy, MediaStrategy, SocketProvider, PageConsoleClient, ResourceHandleClient, HeapCellType, the two filter operations, InspectorTarget, RemoteAutomationTarget and RemoteInspectionTarget. DisplayRefreshMonitor's destructor calls an internal function and is also left out.

Debt: the fragment docs/dev/debt/changes/feat-nkwebkit-vtable-constructors.md adds the Functional entry and removes the 28 inventory rows.
Overlap: I fetched every open PR head and diffed it against main. None removes these stubs, and main has no vtable for any of these classes. #22682 covers different interface bases.

Tested

Linux Mint 22.3, GCC 13.3, Release:

  • The new nkwebkit_vtableconstructors test runs every constructor on a 4 KiB object filled with 0xa5. It checks that the vptr is the class table's address point, that every decoded store landed (value, width, offset, the copied field) and that all other bytes are untouched. It checks that null objects throw, checks the four helpers, and checks per table the number of pure-virtual and helper slots and the zero header.
  • Slot-by-slot check against the module: a gdb script loads the built libSceNKWebKit.prx through the test binary, reads every table through its accessor and names each slot with info symbol (demangling off). All 344 slots name exactly the function the module's relocation points at, or the helper standing in for an internal body.
  • Negative controls: changing one reference count from 1 to 2, or turning one pure slot into an empty one, makes the test fail.
  • Full NKWebKit suite: 146/146 nkwebkit_* tests pass.
  • tools/check_conventions.py passes.
  • Not run on Windows locally. The pure-virtual slots are .quad references to __cxa_pure_virtual_nid_postfix in libc.prx, which relies on MinGW auto-import of a data reference to another DLL. The Windows CI build will show whether that holds.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5388760947 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23482). Originally posted by [RiverWhy](https://github.com/RiverWhy) on 2026-11-19T04:22:27Z. --- ### What Implements 35 `libSceNKWebKit` constructors and copy constructors whose module body only installs the class vtable and stores constant field values. One of them also copies one field. All 35 throw `NotImplemented` on `main` today. Source: the `libSceNKWebKit.sprx` with SHA-256 `3af992253665387feeb5df90ff27dff683e3aa270cc4d92a0535b46ab18fa20d` (the module the existing *Constant-return exports* debt entry reads as 11.00). For each constructor I read the body, followed its `lea` to the class vtable and rebuilt the vtable slot by slot from the module's relocations: - **Pure virtual** (an import whose NID is `__cxa_pure_virtual`): points to `__cxa_pure_virtual_nid_postfix`, as #22682 does. - **Export with a known name:** points to that AnyPS5 export, whether it's implemented or still a stub. - **Internal body `ret`, `xor eax,eax; ret` or `mov rax,rdi; mov qword [rdi],0; ret`:** points to one of four local helpers with the same behaviour. Offset-to-top and type info are 0, as in the module (it is built without RTTI). The vtables are emitted as assembly `.quad` tables, the way `ForwardExports.cpp` emits its tail jumps, so slots can point at exports whose AnyPS5 placeholder declarations have other types. | Class | Constructors | Slots | Pure | Named exports | Reproduced bodies | |---|---|---|---|---|---| | `JSC::WeakHandleOwner` | 4 | 4 | 0 | 3 | 1 | | `JSC::TypedArrayController` | 1 | 5 | 3 | 2 | 0 | | `WTF::FunctionDispatcher` | 1 | 3 | 1 | 2 | 0 | | `WebCore::MIMETypeCache` | 2 | 9 | 0 | 7 | 2 | | `WebCore::XPathNSResolver` | 1 | 3 | 1 | 2 | 0 | | `WebCore::BlobRegistryImpl` | 2 | 2 | 0 | 2 | 0 | | `WebCore::VisitedLinkStore` | 1 | 4 | 2 | 2 | 0 | | `WebCore::FrameLoaderClient` | 2 | 135 | 97 | 36 | 2 | | `WebCore::LibWebRTCProvider` | 4 | 4 | 0 | 3 | 1 | | `WebCore::PluginInfoProvider` | 1 | 5 | 3 | 2 | 0 | | `WebCore::UserContentProvider` | 1 | 4 | 2 | 2 | 0 | | `WebCore::EmptyFrameLoaderClient` | 4 | 135 | 0 | 121 | 14 | | `WebCore::StorageNamespaceProvider` | 1 | 5 | 3 | 2 | 0 | | `WebCore::ContentSecurityPolicyClient` | 2 | 6 | 3 | 3 | 0 | | `WebCore::InspectorFrontendClientLocal::Settings` | 4 | 5 | 0 | 5 | 0 | | `Inspector::RemoteInspector::Client` | 2 | 8 | 3 | 4 | 1 | | `Inspector::RemoteControllableTarget` | 2 | 7 | 5 | 2 | 0 | The constructors themselves are generated from their decoded bodies: the vtable store, `movl $1` reference counts, `movb $0`/`movq $0` member clears and 16-byte `vmovups` clears. `RemoteControllableTarget`'s copy constructor also copies the 32-bit field at 8 from the source. The generator refuses any instruction outside that set. A null object (and, for that copy, a null source) throws. Left out, because at least one vtable slot points at module code AnyPS5 doesn't have (an allocation, a call into an internal function, and so on): `LoaderStrategy`, `MediaStrategy`, `SocketProvider`, `PageConsoleClient`, `ResourceHandleClient`, `HeapCellType`, the two filter operations, `InspectorTarget`, `RemoteAutomationTarget` and `RemoteInspectionTarget`. `DisplayRefreshMonitor`'s destructor calls an internal function and is also left out. Debt: the fragment `docs/dev/debt/changes/feat-nkwebkit-vtable-constructors.md` adds the Functional entry and removes the 28 inventory rows. Overlap: I fetched every open PR head and diffed it against `main`. None removes these stubs, and `main` has no vtable for any of these classes. #22682 covers different interface bases. ### Tested Linux Mint 22.3, GCC 13.3, Release: - The new `nkwebkit_vtableconstructors` test runs every constructor on a 4 KiB object filled with 0xa5. It checks that the vptr is the class table's address point, that every decoded store landed (value, width, offset, the copied field) and that all other bytes are untouched. It checks that null objects throw, checks the four helpers, and checks per table the number of pure-virtual and helper slots and the zero header. - Slot-by-slot check against the module: a gdb script loads the built `libSceNKWebKit.prx` through the test binary, reads every table through its accessor and names each slot with `info symbol` (demangling off). All 344 slots name exactly the function the module's relocation points at, or the helper standing in for an internal body. - Negative controls: changing one reference count from 1 to 2, or turning one pure slot into an empty one, makes the test fail. - Full NKWebKit suite: 146/146 `nkwebkit_*` tests pass. - `tools/check_conventions.py` passes. - Not run on Windows locally. The pure-virtual slots are `.quad` references to `__cxa_pure_virtual_nid_postfix` in `libc.prx`, which relies on MinGW auto-import of a data reference to another DLL. The Windows CI build will show whether that holds. ### Checklist - [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) and the licence notice of code adapted from upstream (see AGENTS.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: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
PrivacyOnion commented 2026-11-19 04:36:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T04:36:17Z.

Review: CHANGES_REQUESTED


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

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_vtableconstructors_tests built cleanly.
  • CTest (nkwebkit_vtableconstructors):
    1/1 Test #4636: nkwebkit_vtableconstructors ......   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/Api.hpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp, core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp, core/libs/prx/libSceNKWebKit/src/VtableConstructors.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified null check logic in all 35 constructors in core/libs/prx/libSceNKWebKit/src/VtableConstructors.cpp: discovered that ZN9Inspector24RemoteControllableTargetC2ERKS0 in VtableConstructors.cpp:322 checks if (!other) after already dereferencing other, leading to undefined behavior / crash if other is null.
    • Verified return types and C++ ABI for all 35 constructors: standard Itanium C++ ABI constructors return void (or this pointer in some ABIs, but void matches header VtableConstructorExports.hpp) and throw std::invalid_argument on null this pointer.
    • Verified AGENTS.md compliance: checked docs/dev/debt/changes/feat-nkwebkit-vtable-constructors.md for debt tracking, checked conventions and absence of code comments outside permitted directives.
    • Verified vtable layout and pure-virtual / helper bindings against WebCore / JSC / WTF conventions and PS5 module disassembly specifications.
  • Concerns:
    • core/libs/prx/libSceNKWebKit/src/VtableConstructors.cpp:322: In _ZN9Inspector24RemoteControllableTargetC2ERKS0_(void* self, const void* other), other is unchecked when passed, but line 324 checks if (!other) throw std::invalid_argument(...) immediately after storing the vtable. If other == nullptr, passing static_cast<const char*>(other) + 0x8 to std::memcpy on line 325 causes undefined behavior, and the check on line 324 should precede any copying, but more critically, dereferencing or pointer arithmetic on nullptr or passing null to memcpy is undefined behavior. Furthermore, line 320 executes (void)other; indicating inconsistent handling before checking it.

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5969379002 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23482#pullrequestreview-5969379002). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-19T04:36:17Z. **Review:** CHANGES_REQUESTED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `0977d4e483`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_vtableconstructors_tests` built cleanly. - **CTest** (`nkwebkit_vtableconstructors`): ``` 1/1 Test #4636: nkwebkit_vtableconstructors ...... 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/Api.hpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp`, `core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp`, `core/libs/prx/libSceNKWebKit/src/VtableConstructors.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified null check logic in all 35 constructors in core/libs/prx/libSceNKWebKit/src/VtableConstructors.cpp: discovered that _ZN9Inspector24RemoteControllableTargetC2ERKS0_ in VtableConstructors.cpp:322 checks if (!other) after already dereferencing other, leading to undefined behavior / crash if other is null. - Verified return types and C++ ABI for all 35 constructors: standard Itanium C++ ABI constructors return void (or this pointer in some ABIs, but void matches header VtableConstructorExports.hpp) and throw std::invalid_argument on null this pointer. - Verified AGENTS.md compliance: checked docs/dev/debt/changes/feat-nkwebkit-vtable-constructors.md for debt tracking, checked conventions and absence of code comments outside permitted directives. - Verified vtable layout and pure-virtual / helper bindings against WebCore / JSC / WTF conventions and PS5 module disassembly specifications. - **Concerns**: - core/libs/prx/libSceNKWebKit/src/VtableConstructors.cpp:322: In `_ZN9Inspector24RemoteControllableTargetC2ERKS0_(void* self, const void* other)`, `other` is unchecked when passed, but line 324 checks `if (!other) throw std::invalid_argument(...)` immediately after storing the vtable. If `other == nullptr`, passing `static_cast<const char*>(other) + 0x8` to `std::memcpy` on line 325 causes undefined behavior, and the check on line 324 should precede any copying, but more critically, dereferencing or pointer arithmetic on nullptr or passing null to memcpy is undefined behavior. Furthermore, line 320 executes `(void)other;` indicating inconsistent handling before checking it. Requesting changes for the points above.
PrivacyOnion commented 2026-11-19 15:24:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T15:24:42Z.

Review: APPROVED


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

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_vtableconstructors_tests built cleanly.
  • CTest (nkwebkit_vtableconstructors):
    1/1 Test #4723: nkwebkit_vtableconstructors ......   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/Api.hpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp, core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp, core/libs/prx/libSceNKWebKit/src/VtableConstructors.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified null-pointer checks across all 35 constructors in VtableConstructors.cpp, confirming ZN9Inspector24RemoteControllableTargetC2ERKS0 checks 'other' prior to vtable assignment and memcpy.
    • Verified asm vtable symbol declarations and table layouts (.quad alignment, 0 offset-to-top, 0 RTTI) against module disassembly and __cxa_pure_virtual_nid_postfix references.
    • Verified Windows/Linux calling convention and linkage via APS5_VABI, extern 'C', and DLL target retrieval through NKWebKitVtableSlotTargets_nid_no_patch.
    • Checked AGENTS.md technical debt fragment docs/dev/debt/changes/feat-nkwebkit-vtable-constructors.md for proper functional addition and stub removal tracking.
    • Confirmed absence of comments in source code, verified strict removal of NotImplemented stubs in Export.cpp, and verified no leaks or unbounded memory operations.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5977900962 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23482#pullrequestreview-5977900962). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-19T15:24:42Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `ad5f176872`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_vtableconstructors_tests` built cleanly. - **CTest** (`nkwebkit_vtableconstructors`): ``` 1/1 Test #4723: nkwebkit_vtableconstructors ...... 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/Api.hpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp`, `core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp`, `core/libs/prx/libSceNKWebKit/src/VtableConstructors.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified null-pointer checks across all 35 constructors in VtableConstructors.cpp, confirming _ZN9Inspector24RemoteControllableTargetC2ERKS0_ checks 'other' prior to vtable assignment and memcpy. - Verified asm vtable symbol declarations and table layouts (.quad alignment, 0 offset-to-top, 0 RTTI) against module disassembly and __cxa_pure_virtual_nid_postfix references. - Verified Windows/Linux calling convention and linkage via APS5_VABI, extern 'C', and DLL target retrieval through NKWebKitVtableSlotTargets_nid_no_patch. - Checked AGENTS.md technical debt fragment docs/dev/debt/changes/feat-nkwebkit-vtable-constructors.md for proper functional addition and stub removal tracking. - Confirmed absence of comments in source code, verified strict removal of NotImplemented stubs in Export.cpp, and verified no leaks or unbounded memory operations. Looks Good To Me
PrivacyOnion commented 2026-11-19 19:07:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T19:07:11Z.

Review: APPROVED


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

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_vtableconstructors_tests built cleanly.
  • CTest (nkwebkit_vtableconstructors):
    1/1 Test #4746: nkwebkit_vtableconstructors ......   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/Api.hpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp, core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp, core/libs/prx/libSceNKWebKit/src/VtableConstructors.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified null-pointer checks across all 35 constructors in VtableConstructors.cpp, confirming _ZN9Inspector24RemoteControllableTargetC2ERKS0_ checks other prior to vtable assignment and memcpy.
    • Verified assembly vtable declarations (.quad alignment, 0 offset-to-top, 0 RTTI) and slot bindings against __cxa_pure_virtual_nid_postfix and reimplemented exports.
    • Verified calling convention annotations (APS5_VABI) and extern 'C' linkage across Windows and Linux.
    • Verified technical debt tracking in docs/dev/debt/changes/feat-nkwebkit-vtable-constructors.md for addition of Functional entry and proper stub removals.
    • Verified removal of NotImplemented stubs in Export.cpp and absence of disallowed comments in code per AGENTS.md rules.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5981503017 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23482#pullrequestreview-5981503017). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-19T19:07:11Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `6407a6eef1`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_vtableconstructors_tests` built cleanly. - **CTest** (`nkwebkit_vtableconstructors`): ``` 1/1 Test #4746: nkwebkit_vtableconstructors ...... 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/Api.hpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp`, `core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp`, `core/libs/prx/libSceNKWebKit/src/VtableConstructors.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified null-pointer checks across all 35 constructors in VtableConstructors.cpp, confirming `_ZN9Inspector24RemoteControllableTargetC2ERKS0_` checks `other` prior to vtable assignment and memcpy. - Verified assembly vtable declarations (.quad alignment, 0 offset-to-top, 0 RTTI) and slot bindings against `__cxa_pure_virtual_nid_postfix` and reimplemented exports. - Verified calling convention annotations (APS5_VABI) and extern 'C' linkage across Windows and Linux. - Verified technical debt tracking in docs/dev/debt/changes/feat-nkwebkit-vtable-constructors.md for addition of Functional entry and proper stub removals. - Verified removal of NotImplemented stubs in Export.cpp and absence of disallowed comments in code per AGENTS.md rules. Looks Good To Me
MarcZX10 commented 2026-11-21 07:54:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T07:54:56Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change based on the code inspected; the description reports successful Linux tests, while Windows linking remains unverified.

What I ran

Reviewed head 6407a6eef1f8a32dcbae48067266db810b4a10fc. No commands or tests were run; repo_read.py was used to inspect the prepared diff and targeted repository files. The author reports 146/146 NKWebKit tests and convention checks passed on Linux Mint 22.3 with GCC 13.3; these results were not independently verified.

Results

Check Result Note
Changed code review passed Constructor and vtable implementation inspected
Tests in this review not run Author-reported results only
Windows build not run Pure virtual cross-library data references remain unverified

Findings

Blocking

None in the code inspected.

Non-blocking

None.

Not verified

Reviewed VtableConstructors.cpp, VtableConstructorExports.hpp, tests/VtableConstructors.cpp, CMakeLists.txt, libSceNKWebKit.hpp, and the debt change note, along with description.md, commits.md, manifest.json, and diff.patch. Export.cpp and InventoryExports.hpp were excluded from the review bundle because they were too large; the other changed files were included, but their full text was not read. In particular, I did not inspect all of LegacyExports.hpp, Api.hpp, or the added source/test files line by line. The module relocations, independent slot-by-slot comparison, reported test runs, Windows behavior, and actual build output were not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6003975824 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23482#pullrequestreview-6003975824). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T07:54:56Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change based on the code inspected; the description reports successful Linux tests, while Windows linking remains unverified. ## What I ran Reviewed head `6407a6eef1f8a32dcbae48067266db810b4a10fc`. No commands or tests were run; `repo_read.py` was used to inspect the prepared diff and targeted repository files. The author reports 146/146 NKWebKit tests and convention checks passed on Linux Mint 22.3 with GCC 13.3; these results were not independently verified. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Constructor and vtable implementation inspected | | Tests in this review | not run | Author-reported results only | | Windows build | not run | Pure virtual cross-library data references remain unverified | ## Findings ### Blocking None in the code inspected. ### Non-blocking None. ## Not verified Reviewed `VtableConstructors.cpp`, `VtableConstructorExports.hpp`, `tests/VtableConstructors.cpp`, `CMakeLists.txt`, `libSceNKWebKit.hpp`, and the debt change note, along with `description.md`, `commits.md`, `manifest.json`, and `diff.patch`. `Export.cpp` and `InventoryExports.hpp` were excluded from the review bundle because they were too large; the other changed files were included, but their full text was not read. In particular, I did not inspect all of `LegacyExports.hpp`, `Api.hpp`, or the added source/test files line by line. The module relocations, independent slot-by-slot comparison, reported test runs, Windows behavior, and actual build output were not independently verified. ## 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!23482
No description provided.