Changeset 34660 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jun 19, 2008, 11:03:23 AM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r34659 r34660 1 2008-06-19 Alexey Proskuryakov <[email protected]> 2 3 Windows and Qt build fixes. 4 5 * kjs/collector.h: 6 * kjs/collector.cpp: 7 (KJS::Heap::Heap): 8 Wrapped m_pagesize in #if PLATFORM(UNIX), which should better match the sequence of #elifs 9 in allocateBlock(). Changed MIN_ARRAY_SIZE to be explicitly size_t, as this type is different 10 on different platforms. 11 1 12 2008-06-17 Alexey Proskuryakov <[email protected]> 2 13 -
trunk/JavaScriptCore/kjs/collector.cpp
r34659 r34660 86 86 // This value has to be a macro to be used in max() without introducing 87 87 // a PIC branch in Mach-O binaries, see <rdar://problem/5971391>. 88 #define MIN_ARRAY_SIZE 14UL88 #define MIN_ARRAY_SIZE (static_cast<size_t>(14)) 89 89 90 90 Heap::Heap() 91 : m_pagesize(getpagesize()) 92 , mainThreadOnlyObjectCount(0) 91 : mainThreadOnlyObjectCount(0) 93 92 , m_markListSet(0) 93 #if PLATFORM(UNIX) 94 , m_pagesize(getpagesize()) 95 #endif 94 96 { 95 97 memset(&primaryHeap, 0, sizeof(CollectorHeap)); … … 477 479 } 478 480 481 #if PLATFORM(DARWIN) 479 482 void Heap::initializeHeapIntrospector() 480 483 { … … 482 485 CollectorHeapIntrospector::init(&primaryHeap, &numberHeap); 483 486 } 484 487 #endif 485 488 #endif 486 489 -
trunk/JavaScriptCore/kjs/collector.h
r34659 r34660 121 121 typedef HashCountedSet<JSCell*> ProtectCountSet; 122 122 123 const size_t m_pagesize;124 125 123 size_t mainThreadOnlyObjectCount; 126 124 CollectorHeap primaryHeap; … … 128 126 ProtectCountSet protectedValues; 129 127 HashSet<ArgList*>* m_markListSet; 128 129 #if PLATFORM(UNIX) 130 const size_t m_pagesize; 131 #endif 130 132 }; 131 133
Note:
See TracChangeset
for help on using the changeset viewer.