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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.