Changeset 35639 in webkit for trunk/JavaScriptCore/kjs/collector.cpp
- Timestamp:
- Aug 8, 2008, 2:48:10 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/collector.cpp
r35478 r35639 160 160 } 161 161 162 template <Heap::HeapType heapType> 162 163 static NEVER_INLINE CollectorBlock* allocateBlock() 163 164 { … … 200 201 memset(reinterpret_cast<void*>(address), 0, BLOCK_SIZE); 201 202 #endif 202 203 reinterpret_cast<CollectorBlock*>(address)->type = heapType; 203 204 return reinterpret_cast<CollectorBlock*>(address); 204 205 } … … 347 348 } 348 349 349 targetBlock = (Block*)allocateBlock ();350 targetBlock = (Block*)allocateBlock<heapType>(); 350 351 targetBlock->freeList = targetBlock->cells; 351 352 targetBlock->heap = this;
Note:
See TracChangeset
for help on using the changeset viewer.