Changeset 38298 in webkit for trunk/JavaScriptCore/parser


Ignore:
Timestamp:
Nov 11, 2008, 1:51:31 AM (17 years ago)
Author:
[email protected]
Message:

2008-11-11 Maciej Stachowiak <[email protected]>

Reviewed by Mark Rowe.


  • shrink CodeBlock and AST related Vectors to exact fit (5-10M savings on membuster test)


No perf regression combined with the last patch (each seems like a small regression individually)

  • bytecompiler/CodeGenerator.cpp: (JSC::CodeGenerator::generate):
  • parser/Nodes.h: (JSC::SourceElements::releaseContentsIntoVector):
  • wtf/Vector.h: (WTF::Vector::shrinkToFit):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/parser/Nodes.h

    r38296 r38298  
    16891689            ASSERT(destination.isEmpty());
    16901690            m_statements.swap(destination);
     1691            destination.shrinkToFit();
    16911692        }
    16921693
Note: See TracChangeset for help on using the changeset viewer.