Bug 118852

Summary: CodeBlock::m_argumentValueProfiles wastes a lot of memory.
Product: WebKit Reporter: Andreas Kling <kling>
Component: JavaScriptCoreAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cmarcelo, commit-queue, kling, webkit-bug-importer
Priority: P2 Keywords: InRadar, Performance
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch andersca: review+

Description Andreas Kling 2013-07-18 09:01:36 PDT
"resize() once, append() never" is not a great pattern.
Comment 1 Radar WebKit Bug Importer 2013-07-18 09:03:26 PDT
<rdar://problem/14481659>
Comment 2 Andreas Kling 2013-07-18 09:07:16 PDT
Created attachment 206994 [details]
Patch
Comment 3 WebKit Commit Bot 2013-07-18 09:08:40 PDT
Attachment 206994 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source/JavaScriptCore/bytecode/CodeBlock.cpp', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/Vector.h']" exit_code: 1
Source/WTF/wtf/Vector.h:611:  The parameter name "size" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Andreas Kling 2013-07-18 09:51:42 PDT
Committed r152848: <http://trac.webkit.org/changeset/152848>