Ignore:
Timestamp:
Nov 12, 2007, 12:00:29 AM (18 years ago)
Author:
oliver
Message:

Add special fastZeroedMalloc function to replace a
number of fastCalloc calls where one argument was 1.

Reviewed by Darin.

This results in a 0.4% progression in SunSpider, more
than making up for the earlier regression caused by
additional overflow checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/FastMalloc.h

    r27297 r27711  
    3131
    3232    void *fastMalloc(size_t n);
     33    void *fastZeroedMalloc(size_t n);
    3334    void *fastCalloc(size_t n_elements, size_t element_size);
    3435    void fastFree(void* p);
Note: See TracChangeset for help on using the changeset viewer.