Changeset 56066 in webkit


Ignore:
Timestamp:
Mar 16, 2010 9:19:50 AM (14 years ago)
Author:
zoltan@webkit.org
Message:

2010-03-16 Zoltan Horvath <zoltan@webkit.org>

Reviewed by Darin Adler.

Remove extra <new> include and add guards to operator new/delete definitions
https://bugs.webkit.org/show_bug.cgi?id=35967

Remove extra <new> header include from FastAlloc.cpp since it is included in
FastAlloc.h. Add ENABLE(GLOBAL_FASTMALLOC_NEW) macro guard to operator
new/delete/new []/delete [] definitions.

  • wtf/FastMalloc.cpp:
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r56062 r56066  
     12010-03-16  Zoltan Horvath  <zoltan@webkit.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        Remove extra <new> include and add guards to operator new/delete definitions
     6        https://bugs.webkit.org/show_bug.cgi?id=35967
     7
     8        Remove extra <new> header include from FastAlloc.cpp since it is included in
     9        FastAlloc.h. Add ENABLE(GLOBAL_FASTMALLOC_NEW) macro guard to operator
     10        new/delete/new []/delete [] definitions.
     11
     12        * wtf/FastMalloc.cpp:
     13
    1142010-03-15  Kwang Yul Seo  <skyul@company100.net>
    215
  • trunk/JavaScriptCore/wtf/FastMalloc.cpp

    r56029 r56066  
    418418#include <errno.h>
    419419#include <limits>
    420 #include <new>
    421420#include <pthread.h>
    422421#include <stdarg.h>
     
    39433942}
    39443943
     3944#if ENABLE(GLOBAL_FASTMALLOC_NEW)
     3945
    39453946void* operator new(size_t size) {
    39463947  void* p = cpp_alloc(size, false);
     
    39963997  do_free(p);
    39973998}
     3999
     4000#endif
    39984001
    39994002extern "C" void* memalign(size_t align, size_t size) __THROW {
Note: See TracChangeset for help on using the changeset viewer.