Changeset 35476 in webkit for trunk/JavaScriptCore/wtf/Platform.h


Ignore:
Timestamp:
Jul 31, 2008, 1:44:58 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Alexey Proskuryakov.

Rename USE(MULTIPLE_THREADS) to ENABLE(JSC_MULTIPLE_THREADS)
to better match the use/enable pattern (and better describe
the usage of the feature in question.)

I also fixed a couple other ENABLE_ macros to be pre-processor
definition override-able to match the rest of the ENABLE_ macros
since it seems to be our convention that build systems can set
ENABLE_ macros in Makefiles.

  • kjs/InitializeThreading.cpp: (KJS::initializeThreadingOnce):
  • kjs/JSGlobalData.cpp: (KJS::JSGlobalData::JSGlobalData): (KJS::JSGlobalData::~JSGlobalData):
  • kjs/MathObject.cpp:
  • kjs/collector.cpp: (KJS::Heap::Heap): (KJS::Heap::~Heap): (KJS::allocateBlock): (KJS::Heap::markStackObjectsConservatively):
  • kjs/collector.h:
  • kjs/dtoa.cpp: (KJS::pow5mult): (KJS::rv_alloc): (KJS::freedtoa): (KJS::dtoa):
  • wtf/FastMalloc.cpp:
  • wtf/Platform.h:
  • wtf/RefCountedLeakCounter.cpp:
File:
1 edited

Legend:

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

    r35474 r35476  
    218218#endif
    219219
    220 #if PLATFORM(MAC) || PLATFORM(WIN)
    221 #define WTF_USE_MULTIPLE_THREADS 1
     220#if (PLATFORM(MAC) || PLATFORM(WIN)) && !defined(ENABLE_JSC_MULTIPLE_THREADS)
     221#define ENABLE_JSC_MULTIPLE_THREADS 1
    222222#endif
    223223
     
    243243#endif
    244244
    245 #if PLATFORM(MAC) || PLATFORM(GTK) || PLATFORM(SYMBIAN) || PLATFORM(WIN) || PLATFORM(WX)
     245#if (PLATFORM(MAC) || PLATFORM(GTK) || PLATFORM(SYMBIAN) || PLATFORM(WIN) || PLATFORM(WX)) && !defined(ENABLE_NETSCAPE_PLUGIN_API)
    246246#define ENABLE_NETSCAPE_PLUGIN_API 1
    247247#endif
     
    256256#endif
    257257
    258 #if PLATFORM(MAC) || PLATFORM(WIN)
     258#if (PLATFORM(MAC) || PLATFORM(WIN)) && !defined(ENABLE_DASHBOARD_SUPPORT)
    259259#define ENABLE_DASHBOARD_SUPPORT 1
    260260#endif
     
    324324#endif
    325325
    326 // Set to 1 to enable the sampler, SamplingTool.
     326#if !defined(ENABLE_SAMPLING_TOOL)
    327327#define ENABLE_SAMPLING_TOOL 0
     328#endif
    328329
    329330#endif /* WTF_Platform_h */
Note: See TracChangeset for help on using the changeset viewer.