Changeset 730
- Timestamp:
- May 12, 2010, 10:21:17 PM (15 years ago)
- Location:
- trunk/src/3rdparty/javascriptcore/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp
r592 r730 239 239 240 240 memset(reinterpret_cast<void*>(address), 0, BLOCK_SIZE); 241 #elif PLATFORM(OS2)241 #elif (PLATFORM(OS2) && !HAVE(POSIX_MEMALIGN)) 242 242 void* address = NULL; 243 243 DosAllocMem(&address, BLOCK_SIZE, PAG_COMMIT | PAG_READ | PAG_WRITE); 244 memset(address, 0, BLOCK_SIZE); 244 245 #elif PLATFORM(WINCE) 245 246 void* address = VirtualAlloc(NULL, BLOCK_SIZE, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE); … … 328 329 #elif PLATFORM(SYMBIAN) 329 330 userChunk->Free(reinterpret_cast<TAny*>(block)); 330 #elif PLATFORM(OS2)331 #elif (PLATFORM(OS2) && !HAVE(POSIX_MEMALIGN)) 331 332 DosFreeMem(block); 332 333 #elif PLATFORM(WINCE) … … 637 638 PTIB ptib; 638 639 DosGetInfoBlocks(&ptib, NULL); 639 return static_cast<void*>(ptib->tib_pstack );640 return static_cast<void*>(ptib->tib_pstacklimit); 640 641 #elif PLATFORM(QNX) 641 642 return currentThreadStackBaseQNX(); -
trunk/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.h
r592 r730 182 182 template<> struct CellSize<sizeof(uint64_t)> { static const size_t m_value = 64; }; 183 183 184 #if PLATFORM(WINCE) || PLATFORM(SYMBIAN) || PLATFORM(OS2)184 #if PLATFORM(WINCE) || PLATFORM(SYMBIAN) || (PLATFORM(OS2) && !HAVE(POSIX_MEMALIGN)) 185 185 const size_t BLOCK_SIZE = 64 * 1024; // 64k 186 186 #else -
trunk/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
r592 r730 615 615 #define HAVE_SYS_PARAM_H 1 616 616 #define HAVE_SYS_TIME_H 1 617 #define HAVE_POSIX_MEMALIGN 1 617 618 618 619 #elif PLATFORM(SYMBIAN)
Note:
See TracChangeset
for help on using the changeset viewer.