NEW241639
[WebIDL] Optimize / rework maplike<> and setlike<> declarations
https://bugs.webkit.org/show_bug.cgi?id=241639
Summary [WebIDL] Optimize / rework maplike<> and setlike<> declarations
Alexey Shvayka
Reported 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.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-06-22 11:34:13 PDT
Note You need to log in before you can comment on or make changes to this bug.