Summary: | Speed up setting JSFunction's "prototype" property | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alexey Shvayka <ashvayka> | ||||||
Component: | JavaScriptCore | Assignee: | Alexey Shvayka <ashvayka> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Enhancement | CC: | ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer, ysuzuki | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Alexey Shvayka
2021-09-27 15:36:17 PDT
Created attachment 439403 [details]
Patch
(In reply to Alexey Shvayka from comment #1) > Created attachment 439403 [details] > Patch r283094 patch class-derived-creation 38.2295+-0.3351 ^ 36.3643+-0.6771 ^ definitely 1.0513x faster class-creation 38.2074+-0.7942 ^ 27.4249+-0.4214 ^ definitely 1.3932x faster function-prototype-put-non-reified 80.5426+-1.2450 ^ 28.4549+-0.4999 ^ definitely 2.8305x faster function-prototype-put-reified 29.1429+-0.4759 ^ 25.6151+-0.3548 ^ definitely 1.1377x faster <geometric> 42.9347+-0.3383 ^ 29.1322+-0.2186 ^ definitely 1.4738x faster Comment on attachment 439403 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=439403&action=review r=me > Source/JavaScriptCore/runtime/JSFunction.cpp:299 > +constexpr unsigned prototypeAttributesForNonClass = PropertyAttribute::DontEnum | PropertyAttribute::DontDelete; Let's put `static` too. Created attachment 439466 [details]
Patch for landing
(In reply to Yusuke Suzuki from comment #3) > > Source/JavaScriptCore/runtime/JSFunction.cpp:299 > > +constexpr unsigned prototypeAttributesForNonClass = PropertyAttribute::DontEnum | PropertyAttribute::DontDelete; > > Let's put `static` too. Done. I appreciate the review! Committed r283167 (242215@main): <https://commits.webkit.org/242215@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 439466 [details]. |