RESOLVED FIXED76271
JSC/DOM bindings: Reduce HandleHeap churn in cacheWrapper().
https://bugs.webkit.org/show_bug.cgi?id=76271
Summary JSC/DOM bindings: Reduce HandleHeap churn in cacheWrapper().
Andreas Kling
Reported 2012-01-13 06:19:19 PST
JSC/DOM bindings: Reduce HandleHeap churn in cacheWrapper().
Attachments
Patch (1.81 KB, patch)
2012-01-13 06:21 PST, Andreas Kling
no flags
Andreas Kling
Comment 1 2012-01-13 06:21:17 PST
Andreas Kling
Comment 2 2012-01-13 08:35:40 PST
Comment on attachment 122422 [details] Patch Clearing flags on attachment: 122422 Committed r104941: <http://trac.webkit.org/changeset/104941>
Andreas Kling
Comment 3 2012-01-13 08:35:50 PST
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 4 2012-01-13 08:41:42 PST
By the way, another way to do this that might be less roundabout would be to add a function that does assignment for JSC::Weak. Something named “set” or “assign”. We’d use that instead of “construct and swap”. I have a possibly-unfounded suspicion move semantics in C++11 also would have helped do this in a more elegant way, but we can’t rely on that at this time.
Note You need to log in before you can comment on or make changes to this bug.