Bug 145784 - [JSC] CodeBlock::m_constantRegisters should be sized-to-fit.
Summary: [JSC] CodeBlock::m_constantRegisters should be sized-to-fit.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords: Performance
Depends on:
Blocks:
 
Reported: 2015-06-08 22:10 PDT by Andreas Kling
Modified: 2015-06-09 14:26 PDT (History)
1 user (show)

See Also:


Attachments
Patch (6.41 KB, patch)
2015-06-08 22:10 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2015-06-08 22:10:00 PDT
We should use Vector::resizeToFit() instead of Vector::resize() when we know the final size for something.
Comment 1 Andreas Kling 2015-06-08 22:10:22 PDT
Created attachment 254546 [details]
Patch
Comment 2 Andreas Kling 2015-06-09 14:26:09 PDT
Comment on attachment 254546 [details]
Patch

Clearing flags on attachment: 254546

Committed r185382: <http://trac.webkit.org/changeset/185382>
Comment 3 Andreas Kling 2015-06-09 14:26:13 PDT
All reviewed patches have been landed.  Closing bug.