Bug 241639

Summary: [WebIDL] Optimize / rework maplike<> and setlike<> declarations
Product: WebKit Reporter: Alexey Shvayka <ashvayka>
Component: BindingsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Enhancement CC: cdumez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Description Alexey Shvayka 2022-06-15 11:33:17 PDT
As Yusuke suggested in https://github.com/WebKit/WebKit/pull/1523#pullrequestreview-1006702442, Map / Set methods can be moved to JSGlobalObject's fields.
Also, we can go further and drop JSC::call and invoke C++ functions like mapProtoFuncValues directly, or even manipulate JSMap directly.

Sam suggested in https://github.com/WebKit/WebKit/pull/1523#issuecomment-1156653410 that we might not need backing Map / Set at all, as it merely duplicates data in most cases given DOM C++ code usually already had a HashMap or HashSet backing things.
Comment 1 Radar WebKit Bug Importer 2022-06-22 11:34:13 PDT
<rdar://problem/95709260>