Changeset 42649 in webkit for trunk/JavaScriptCore/runtime/Collector.cpp
- Timestamp:
- Apr 18, 2009, 7:14:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Collector.cpp
r41854 r42649 41 41 #if PLATFORM(DARWIN) 42 42 43 #include <mach/mach_init.h> 43 44 #include <mach/mach_port.h> 44 #include <mach/mach_init.h>45 45 #include <mach/task.h> 46 46 #include <mach/thread_act.h> 47 47 #include <mach/vm_map.h> 48 #include <mach/vm_statistics.h> 48 49 49 50 #elif PLATFORM(WIN_OS) … … 182 183 { 183 184 #if PLATFORM(DARWIN) 185 #if defined(VM_MEMORY_JAVASCRIPT_CORE) 186 #define TAG VM_MAKE_TAG(VM_MEMORY_JAVASCRIPT_JIT_REGISTER_FILE) 187 #else 188 #define TAG 0 189 #endif 184 190 vm_address_t address = 0; 185 191 // FIXME: tag the region as a JavaScriptCore heap when we get a registered VM tag: <rdar://problem/6054788>. 186 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 vm_map(current_task(), &address, BLOCK_SIZE, BLOCK_OFFSET_MASK, VM_FLAGS_ANYWHERE|TAG, MEMORY_OBJECT_NULL, 0, FALSE, VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT); 187 193 #elif PLATFORM(SYMBIAN) 188 194 // no memory map in symbian, need to hack with fastMalloc
Note:
See TracChangeset
for help on using the changeset viewer.