Changeset 35476 in webkit for trunk/JavaScriptCore/kjs/dtoa.cpp


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/kjs/dtoa.cpp

    r31948 r35476  
    169169namespace KJS {
    170170
    171 #if USE(MULTIPLE_THREADS)
     171#if ENABLE(JSC_MULTIPLE_THREADS)
    172172Mutex* s_dtoaP5Mutex;
    173173#endif
     
    563563        return b;
    564564
    565 #if USE(MULTIPLE_THREADS)
     565#if ENABLE(JSC_MULTIPLE_THREADS)
    566566    s_dtoaP5Mutex->lock();
    567567#endif
     
    573573    }
    574574    int p5s_count_local = p5s_count;
    575 #if USE(MULTIPLE_THREADS)
     575#if ENABLE(JSC_MULTIPLE_THREADS)
    576576    s_dtoaP5Mutex->unlock();
    577577#endif
     
    588588
    589589        if (++p5s_used == p5s_count_local) {
    590 #if USE(MULTIPLE_THREADS)
     590#if ENABLE(JSC_MULTIPLE_THREADS)
    591591            s_dtoaP5Mutex->lock();
    592592#endif
     
    598598           
    599599            p5s_count_local = p5s_count;
    600 #if USE(MULTIPLE_THREADS)
     600#if ENABLE(JSC_MULTIPLE_THREADS)
    601601            s_dtoaP5Mutex->unlock();
    602602#endif
     
    18261826}
    18271827
    1828 #if !USE(MULTIPLE_THREADS)
     1828#if !ENABLE(JSC_MULTIPLE_THREADS)
    18291829static char* dtoa_result;
    18301830#endif
     
    18421842    *r = k;
    18431843    return
    1844 #if !USE(MULTIPLE_THREADS)
     1844#if !ENABLE(JSC_MULTIPLE_THREADS)
    18451845    dtoa_result =
    18461846#endif
     
    18711871    b->maxwds = 1 << (b->k = *(int*)b);
    18721872    Bfree(b);
    1873 #if !USE(MULTIPLE_THREADS)
     1873#if !ENABLE(JSC_MULTIPLE_THREADS)
    18741874    if (s == dtoa_result)
    18751875        dtoa_result = 0;
     
    19371937#endif
    19381938
    1939 #if !USE(MULTIPLE_THREADS)
     1939#if !ENABLE(JSC_MULTIPLE_THREADS)
    19401940    if (dtoa_result) {
    19411941        freedtoa(dtoa_result);
Note: See TracChangeset for help on using the changeset viewer.