Bug 230864

Summary: Speed up setting JSFunction's "prototype" property
Product: WebKit Reporter: Alexey Shvayka <ashvayka>
Component: JavaScriptCoreAssignee: 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 Flags
Patch
none
Patch for landing none

Alexey Shvayka
Reported 2021-09-27 15:36:17 PDT
Speed up setting JSFunction's "prototype" property
Attachments
Patch (11.69 KB, patch)
2021-09-27 15:40 PDT, Alexey Shvayka
no flags
Patch for landing (11.66 KB, patch)
2021-09-28 06:07 PDT, Alexey Shvayka
no flags
Alexey Shvayka
Comment 1 2021-09-27 15:40:00 PDT
Alexey Shvayka
Comment 2 2021-09-27 15:41:54 PDT
(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
Yusuke Suzuki
Comment 3 2021-09-27 18:32:22 PDT
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.
Alexey Shvayka
Comment 4 2021-09-28 06:07:07 PDT
Created attachment 439466 [details] Patch for landing
Alexey Shvayka
Comment 5 2021-09-28 06:08:32 PDT
(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!
EWS
Comment 6 2021-09-28 06:37:25 PDT
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].
Radar WebKit Bug Importer
Comment 7 2021-09-28 06:38:18 PDT
Note You need to log in before you can comment on or make changes to this bug.