Changeset 34660 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Jun 19, 2008, 11:03:23 AM (17 years ago)
Author:
[email protected]
Message:

Windows and Qt build fixes.

  • kjs/collector.h:
  • kjs/collector.cpp: (KJS::Heap::Heap): Wrapped m_pagesize in #if PLATFORM(UNIX), which should better match the sequence of #elifs in allocateBlock(). Changed MIN_ARRAY_SIZE to be explicitly size_t, as this type is different on different platforms.
Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r34659 r34660  
     12008-06-19  Alexey Proskuryakov  <[email protected]>
     2
     3        Windows and Qt build fixes.
     4
     5        * kjs/collector.h:
     6        * kjs/collector.cpp:
     7        (KJS::Heap::Heap):
     8        Wrapped m_pagesize in #if PLATFORM(UNIX), which should better match the sequence of #elifs
     9        in allocateBlock(). Changed MIN_ARRAY_SIZE to be explicitly size_t, as this type is different
     10        on different platforms.
     11
    1122008-06-17  Alexey Proskuryakov  <[email protected]>
    213
  • trunk/JavaScriptCore/kjs/collector.cpp

    r34659 r34660  
    8686// This value has to be a macro to be used in max() without introducing
    8787// a PIC branch in Mach-O binaries, see <rdar://problem/5971391>.
    88 #define MIN_ARRAY_SIZE 14UL
     88#define MIN_ARRAY_SIZE (static_cast<size_t>(14))
    8989
    9090Heap::Heap()
    91     : m_pagesize(getpagesize())
    92     , mainThreadOnlyObjectCount(0)
     91    : mainThreadOnlyObjectCount(0)
    9392    , m_markListSet(0)
     93#if PLATFORM(UNIX)
     94    , m_pagesize(getpagesize())
     95#endif
    9496{
    9597    memset(&primaryHeap, 0, sizeof(CollectorHeap));
     
    477479}
    478480
     481#if PLATFORM(DARWIN)
    479482void Heap::initializeHeapIntrospector()
    480483{
     
    482485    CollectorHeapIntrospector::init(&primaryHeap, &numberHeap);
    483486}
    484 
     487#endif
    485488#endif
    486489
  • trunk/JavaScriptCore/kjs/collector.h

    r34659 r34660  
    121121        typedef HashCountedSet<JSCell*> ProtectCountSet;
    122122
    123         const size_t m_pagesize;
    124 
    125123        size_t mainThreadOnlyObjectCount;
    126124        CollectorHeap primaryHeap;
     
    128126        ProtectCountSet protectedValues;
    129127        HashSet<ArgList*>* m_markListSet;
     128
     129#if PLATFORM(UNIX)
     130        const size_t m_pagesize;
     131#endif
    130132    };
    131133
Note: See TracChangeset for help on using the changeset viewer.