Changeset 35097 in webkit for trunk/JavaScriptCore/kjs/collector.cpp
- Timestamp:
- Jul 10, 2008, 10:55:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/collector.cpp
r35021 r35097 50 50 #include <mach/vm_map.h> 51 51 52 #include "CollectorHeapIntrospector.h"53 54 52 #elif PLATFORM(WIN_OS) 55 53 … … 118 116 static NEVER_INLINE CollectorBlock* allocateBlock() 119 117 { 120 #if PLATFORM(DARWIN) 118 #if PLATFORM(DARWIN) 121 119 vm_address_t address = 0; 120 // FIXME: tag the region as a JavaScriptCore heap when we get a registered VM tag: <rdar://problem/6054788>. 122 121 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); 123 122 #elif PLATFORM(WIN_OS) … … 489 488 } 490 489 491 #if PLATFORM(DARWIN)492 void Heap::initializeHeapIntrospector()493 {494 ASSERT(pthread_main_np());495 CollectorHeapIntrospector::init(&primaryHeap, &numberHeap);496 }497 #endif498 490 #endif 499 491
Note:
See TracChangeset
for help on using the changeset viewer.