feat(libSceJsc): return from four destructors and didCreateFrontendAndBackend as firmware 13.42 does #15617
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15617"
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 BunnyFl on 2026-11-03T22:05:02Z.
What
Five libSceJsc exports threw. In firmware 13.42 each body is a lone
ret, and this change does the same:JSC::VM::ClientData::~ClientData()(D1)+tuS+migTvIvoid (void* self)bmalloc::FreeList::~FreeList()(D2)0qmAOS00O2gvoid (void* self)Inspector::DebuggerBackendDispatcherHandler::~DebuggerBackendDispatcherHandler()(D2)0QbSxsg9i1Mvoid (void* self)Inspector::TimelineBackendDispatcherHandler::~TimelineBackendDispatcherHandler()(D1)-hk9wmuusRUvoid (void* self)Inspector::InspectorDebuggerAgent::didCreateFrontendAndBackend(FrontendRouter*, BackendDispatcher*)-md9AgyWZkwvoid (void* self, void*, void*)The parameters come from the mangled names, and the declarations in
core/libs/prx/libSceJsc/include/Api.hppchange with them.In
docs/dev/debt/libSceJsc.md, the "Known export names" entry goes from 150 to 145 throwing exports. A new "Empty bodies" entry says the console JavaScriptCore version is unverified and the bodies were read from disassembly, not measured on a console.Source
Firmware 13.42
system_ex/common_ex/lib/libSceJsc.sprx(sha2564d00f49cd9d53c5c7e75aebfb00f2df37b8d225f68559066d653f6f1cbde45ec), read from disassembly, not run on a console. Export addresses come from the module's dynamic symbol table. Each body:None of the five bodies above reads an argument or stores anything. A null or invalid pointer is never dereferenced, here or in firmware.
Tested
15618bf7d2: 67 of 67 pass. That isguest_jsc_string, the newguest_jsc_trivial_returns,public_headersand the 64public_headers_compile_*batches.core/libs/tests/GuestJscTrivialReturns.cppcalls the five, passes null pointers todidCreateFrontendAndBackendas well, and checks that every buffer passed in is unchanged.NotImplemented_nid_no_patch(__func__)back in the five bodies, which ismain's behaviour, and kept this branch's signatures and test. The new test then aborts with_ZN3JSC2VM10ClientDataD1Ev not implemented(1 of 1 failed).tools/check_conventions.py --base upstream/mainon the committed head: all checks pass.tools/pr_overlap.py --branch: only #13135 shares lines. Its diff doesn't name these five functions.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)🤖 Generated with Claude Code