Changeset 38181 in webkit for trunk/JavaScriptCore
- Timestamp:
- Nov 6, 2008, 10:38:41 AM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r38177 r38181 1 2008-11-06 Kristian Amlie <[email protected]> 2 3 Reviewed by Simon Hausmann. 4 5 Implemented the block allocation on Symbian through heap allocation. 6 7 Unfortunately there is no way to allocate virtual memory. The Posix 8 layer provides mmap() but no anonymous mapping. So this is a very slow 9 solution but it should work as a start. 10 11 * runtime/Collector.cpp: 12 (JSC::allocateBlock): 13 (JSC::freeBlock): 14 1 15 2008-11-06 Laszlo Gombos <[email protected]> 2 16 -
trunk/JavaScriptCore/runtime/Collector.cpp
r38178 r38181 190 190 // FIXME: tag the region as a JavaScriptCore heap when we get a registered VM tag: <rdar://problem/6054788>. 191 191 vm_map(current_task(), &address, BLOCK_SIZE, BLOCK_OFFSET_MASK, VM_FLAGS_ANYWHERE, MEMORY_OBJECT_NULL, 0, FALSE, VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT); 192 #elif PLATFORM(SYMBIAN) 193 // no memory map in symbian, need to hack with fastMalloc 194 void* address = fastMalloc(BLOCK_SIZE); 195 memset(reinterpret_cast<void*>(address), 0, BLOCK_SIZE); 192 196 #elif PLATFORM(WIN_OS) 193 197 // windows virtual address granularity is naturally 64k … … 232 236 #if PLATFORM(DARWIN) 233 237 vm_deallocate(current_task(), reinterpret_cast<vm_address_t>(block), BLOCK_SIZE); 238 #elif PLATFORM(SYMBIAN) 239 fastFree(block); 234 240 #elif PLATFORM(WIN_OS) 235 241 VirtualFree(block, 0, MEM_RELEASE);
Note:
See TracChangeset
for help on using the changeset viewer.