Ignore:
Timestamp:
Sep 19, 2009, 10:41:44 AM (16 years ago)
Author:
Simon Hausmann
Message:

QtWebKit Windows CE compile fix

Patch by Joerg Bornemann <[email protected]> on 2009-09-19
Reviewed by George Staikos.

https://bugs.webkit.org/show_bug.cgi?id=29379

There is no _aligned_alloc or _aligned_free on Windows CE.
We just use the Windows code that was there before and use VirtualAlloc.
But that also means that the BLOCK_SIZE must be 64K as this function
allocates on 64K boundaries.

  • runtime/Collector.cpp:

(JSC::Heap::allocateBlock):
(JSC::Heap::freeBlock):

  • runtime/Collector.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/Collector.cpp

    r48391 r48558  
    237237
    238238    memset(reinterpret_cast<void*>(address), 0, BLOCK_SIZE);
     239#elif PLATFORM(WINCE)
     240    void* address = VirtualAlloc(NULL, BLOCK_SIZE, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
    239241#elif PLATFORM(WIN_OS)
    240242#if COMPILER(MINGW)
     
    319321#elif PLATFORM(SYMBIAN)
    320322    userChunk->Free(reinterpret_cast<TAny*>(block));
     323#elif PLATFORM(WINCE)
     324    VirtualFree(block, 0, MEM_RELEASE);
    321325#elif PLATFORM(WIN_OS)
    322326#if COMPILER(MINGW)
Note: See TracChangeset for help on using the changeset viewer.