Changeset 728 for trunk


Ignore:
Timestamp:
May 12, 2010, 8:52:00 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

webkit: Use posix_memalign() and cell blocks of 256K as on other desktop platforms.

Location:
trunk/src/3rdparty/webkit/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/3rdparty/webkit/JavaScriptCore/runtime/Collector.cpp

    r726 r728  
    255255
    256256    memset(reinterpret_cast<void*>(address), 0, BLOCK_SIZE);
    257 #elif PLATFORM(OS2)
     257#elif )
    258258    void* address = NULL;
    259259    DosAllocMem(&address, BLOCK_SIZE, PAG_COMMIT | PAG_READ | PAG_WRITE);
    260 #elif PLATFORM(WINCE)
    261     void* address = VirtualAlloc(NULL, BLOCK_SIZE, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
     260    memset(address, 0, BLOCK_SIZE);
    262261#elif PLATFORM(WIN_OS)
    263262#if COMPILER(MINGW)
     
    344343#elif PLATFORM(SYMBIAN)
    345344    userChunk->Free(reinterpret_cast<TAny*>(block));
    346 #elif PLATFORM(OS2)
     345#elif )
    347346    DosFreeMem(block);
    348347#elif PLATFORM(WINCE)
  • trunk/src/3rdparty/webkit/JavaScriptCore/runtime/Collector.h

    r636 r728  
    172172    template<> struct CellSize<sizeof(uint64_t)> { static const size_t m_value = 64; };
    173173
    174 #if PLATFORM(WINCE) || PLATFORM(SYMBIAN) || PLATFORM(OS2)
     174#if PLATFORM(WINCE) || PLATFORM(SYMBIAN) || )
    175175    const size_t BLOCK_SIZE = 64 * 1024; // 64k
    176176#else
  • trunk/src/3rdparty/webkit/JavaScriptCore/wtf/Platform.h

    r636 r728  
    619619#define HAVE_SYS_PARAM_H 1
    620620#define HAVE_SYS_TIME_H 1
     621
    621622
    622623#elif PLATFORM(SYMBIAN)
Note: See TracChangeset for help on using the changeset viewer.