Changeset 133812 in webkit for trunk/Source/JavaScriptCore/heap/WeakBlock.cpp
- Timestamp:
- Nov 7, 2012, 3:34:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/WeakBlock.cpp
r133358 r133812 35 35 namespace JSC { 36 36 37 WeakBlock* WeakBlock::create( )37 WeakBlock* WeakBlock::create(DeadBlock* block) 38 38 { 39 void* allocation = fastMalloc(blockSize);40 return new (NotNull, allocation) WeakBlock;39 Region* region = block->region(); 40 return new (NotNull, block) WeakBlock(region); 41 41 } 42 42 43 void WeakBlock::destroy(WeakBlock* block) 44 { 45 fastFree(block); 46 } 47 48 WeakBlock::WeakBlock() 43 WeakBlock::WeakBlock(Region* region) 44 : HeapBlock<WeakBlock>(region) 49 45 { 50 46 for (size_t i = 0; i < weakImplCount(); ++i) {
Note:
See TracChangeset
for help on using the changeset viewer.