Summary: | JSC/DOM bindings: Reduce HandleHeap churn in cacheWrapper(). | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andreas Kling <kling> | ||||
Component: | WebCore JavaScript | Assignee: | Andreas Kling <kling> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | andersca, darin | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Andreas Kling
2012-01-13 06:19:19 PST
Created attachment 122422 [details]
Patch
Comment on attachment 122422 [details] Patch Clearing flags on attachment: 122422 Committed r104941: <http://trac.webkit.org/changeset/104941> All reviewed patches have been landed. Closing bug. 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. |