Changeset 207659 in webkit
- Timestamp:
- Oct 20, 2016 11:00:48 PM (7 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r207653 r207659 1 2016-10-20 Zan Dobersek <zdobersek@igalia.com> 2 3 Fix JSC cast-align compiler warnings on ARMv7 4 https://bugs.webkit.org/show_bug.cgi?id=163744 5 6 Reviewed by Mark Lam. 7 8 Use the reinterpret_cast_ptr workaround in a few places where 9 the cast alignment warning is being thrown by the GCC compiler 10 when compiling for the ARMv7 architecture. 11 12 * heap/Heap.cpp: 13 (JSC::Zombify::visit): 14 * heap/HeapCell.h: 15 (JSC::HeapCell::zap): 16 (JSC::HeapCell::isZapped): 17 * heap/MarkedBlock.cpp: 18 (JSC::MarkedBlock::Handle::specializedSweep): 19 1 20 2016-10-20 Filip Pizlo <fpizlo@apple.com> 2 21 -
trunk/Source/JavaScriptCore/heap/Heap.cpp
r207653 r207659 1432 1432 inline void visit(HeapCell* cell) const 1433 1433 { 1434 void** current = reinterpret_cast <void**>(cell);1434 void** current = reinterpret_cast_ptr<void**>(cell); 1435 1435 1436 1436 // We want to maintain zapped-ness because that's how we know if we've called -
trunk/Source/JavaScriptCore/heap/HeapCell.h
r205462 r207659 46 46 HeapCell() { } 47 47 48 void zap() { *reinterpret_cast <uintptr_t**>(this) = 0; }49 bool isZapped() const { return !*reinterpret_cast <uintptr_t* const*>(this); }48 void zap() { *reinterpret_cast_ptr<uintptr_t**>(this) = 0; } 49 bool isZapped() const { return !*reinterpret_cast_ptr<uintptr_t* const*>(this); } 50 50 51 51 bool isLargeAllocation() const; -
trunk/Source/JavaScriptCore/heap/MarkedBlock.cpp
r207179 r207659 138 138 139 139 if (sweepMode == SweepToFreeList) { 140 FreeCell* freeCell = reinterpret_cast <FreeCell*>(cell);140 FreeCell* freeCell = reinterpret_cast_ptr<FreeCell*>(cell); 141 141 if (scribbleMode == Scribble) 142 142 scribble(freeCell, cellSize());
Note: See TracChangeset
for help on using the changeset viewer.