Changeset 106686 in webkit for trunk/Source/JavaScriptCore/heap
- Timestamp:
- Feb 3, 2012, 12:59:00 PM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore/heap
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/HandleTypes.h
r95901 r106686 36 36 template<typename T> struct HandleTypes { 37 37 typedef T* ExternalType; 38 static ExternalType getFromSlot(HandleSlot slot) { return (slot && *slot) ? reinterpret_cast<ExternalType>(s lot->asCell()) : 0; }38 static ExternalType getFromSlot(HandleSlot slot) { return (slot && *slot) ? reinterpret_cast<ExternalType>(static_cast<void*>(slot->asCell())) : 0; } 39 39 static JSValue toJSValue(T* cell) { return reinterpret_cast<JSCell*>(cell); } 40 40 template<typename U> static void validateUpcast() { T* temp; temp = (U*)0; } -
trunk/Source/JavaScriptCore/heap/MarkedBlock.cpp
r105442 r106686 90 90 continue; 91 91 92 JSCell* cell = reinterpret_cast <JSCell*>(&atoms()[i]);92 JSCell* cell = reinterpret_cast_ptr<JSCell*>(&atoms()[i]); 93 93 if (blockState == Zapped && !cell->isZapped()) 94 94 continue; -
trunk/Source/JavaScriptCore/heap/MarkedBlock.h
r105442 r106686 318 318 { 319 319 for (size_t i = firstAtom(); i < m_endAtom; i += m_atomsPerCell) { 320 JSCell* cell = reinterpret_cast <JSCell*>(&atoms()[i]);320 JSCell* cell = reinterpret_cast_ptr<JSCell*>(&atoms()[i]); 321 321 if (!isLive(cell)) 322 322 continue;
Note:
See TracChangeset
for help on using the changeset viewer.