Changeset 143909 in webkit for trunk/Source/JavaScriptCore/heap/WeakBlock.h
- Timestamp:
- Feb 25, 2013, 5:13:43 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/WeakBlock.h
r133812 r143909 98 98 inline WeakImpl* WeakBlock::asWeakImpl(FreeCell* freeCell) 99 99 { 100 return reinterpret_cast <WeakImpl*>(freeCell);100 return reinterpret_cast_ptr<WeakImpl*>(freeCell); 101 101 } 102 102 … … 111 111 inline WeakBlock::FreeCell* WeakBlock::asFreeCell(WeakImpl* weakImpl) 112 112 { 113 return reinterpret_cast <FreeCell*>(weakImpl);113 return reinterpret_cast_ptr<FreeCell*>(weakImpl); 114 114 } 115 115 116 116 inline WeakImpl* WeakBlock::weakImpls() 117 117 { 118 return reinterpret_cast <WeakImpl*>(this) + ((sizeof(WeakBlock) + sizeof(WeakImpl) - 1) / sizeof(WeakImpl));118 return reinterpret_cast_ptr<WeakImpl*>(this) + ((sizeof(WeakBlock) + sizeof(WeakImpl) - 1) / sizeof(WeakImpl)); 119 119 } 120 120
Note:
See TracChangeset
for help on using the changeset viewer.