Ignore:
Timestamp:
Nov 1, 2011, 7:52:05 PM (14 years ago)
Author:
Darin Adler
Message:

Cut down on malloc/free a bit in the parser arena
https://bugs.webkit.org/show_bug.cgi?id=71343

Reviewed by Oliver Hunt.

  • parser/ParserArena.cpp:

(JSC::ParserArena::deallocateObjects): Call the destructors of
the deletable objects before freeing the pools. Don't call
fastFree on the deletable objects any more.

  • parser/ParserArena.h:

(JSC::ParserArena::allocateDeletable): Use allocateFreeable
instead of fastMalloc here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/ParserArena.h

    r95901 r99036  
    124124        void* allocateDeletable(size_t size)
    125125        {
    126             ParserArenaDeletable* deletable = static_cast<ParserArenaDeletable*>(fastMalloc(size));
     126            ParserArenaDeletable* deletable = static_cast<ParserArenaDeletable*>(allocateFreeable(size));
    127127            m_deletableObjects.append(deletable);
    128128            return deletable;
Note: See TracChangeset for help on using the changeset viewer.