Changeset 106686 in webkit
- Timestamp:
- Feb 3, 2012 12:59:00 PM (12 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r106677 r106686 1 2012-02-03 Rob Buis <rbuis@rim.com> 2 3 Fix alignment warnings in ARMv7 4 https://bugs.webkit.org/show_bug.cgi?id=55368 5 6 Reviewed by Filip Pizlo. 7 8 Use reinterpret_cast_ptr and static_cast to get rid of alignment issues in ARMv7 code. 9 10 * heap/HandleTypes.h: 11 (JSC::HandleTypes::getFromSlot): 12 * heap/MarkedBlock.cpp: 13 (JSC::MarkedBlock::specializedSweep): 14 * heap/MarkedBlock.h: 15 (JSC::MarkedBlock::forEachCell): 16 * runtime/WriteBarrier.h: 17 (JSC::WriteBarrierBase::get): 18 (JSC::WriteBarrierBase::unvalidatedGet): 19 1 20 2012-02-03 Mark Hahnenberg <mhahnenberg@apple.com> 2 21 -
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; -
trunk/Source/JavaScriptCore/runtime/WriteBarrier.h
r104900 r106686 94 94 if (m_cell) 95 95 validateCell(m_cell); 96 return reinterpret_cast<T*>( m_cell);96 return reinterpret_cast<T*>(static_cast<void*>(m_cell)); 97 97 } 98 98 … … 129 129 130 130 #if ENABLE(GC_VALIDATION) 131 T* unvalidatedGet() const { return reinterpret_cast<T*>( m_cell); }131 T* unvalidatedGet() const { return reinterpret_cast<T*>(static_cast<void*>(m_cell)); } 132 132 #endif 133 133
Note: See TracChangeset
for help on using the changeset viewer.