Changeset 207983 in webkit
- Timestamp:
- Oct 27, 2016, 3:43:20 AM (10 years ago)
- Location:
- releases/WebKitGTK/webkit-2.14/Source/JavaScriptCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
heap/Heap.cpp (modified) (1 diff)
-
heap/HeapCell.h (modified) (1 diff)
-
heap/MarkedBlock.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.14/Source/JavaScriptCore/ChangeLog
r207113 r207983 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-09-27 Michael Catanzaro <mcatanzaro@igalia.com> 2 21 -
releases/WebKitGTK/webkit-2.14/Source/JavaScriptCore/heap/Heap.cpp
r205717 r207983 1542 1542 inline void visit(HeapCell* cell) const 1543 1543 { 1544 void** current = reinterpret_cast <void**>(cell);1544 void** current = reinterpret_cast_ptr<void**>(cell); 1545 1545 1546 1546 // We want to maintain zapped-ness because that's how we know if we've called -
releases/WebKitGTK/webkit-2.14/Source/JavaScriptCore/heap/HeapCell.h
r205717 r207983 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; -
releases/WebKitGTK/webkit-2.14/Source/JavaScriptCore/heap/MarkedBlock.cpp
r207061 r207983 149 149 150 150 if (sweepMode == SweepToFreeList) { 151 FreeCell* freeCell = reinterpret_cast <FreeCell*>(cell);151 FreeCell* freeCell = reinterpret_cast_ptr<FreeCell*>(cell); 152 152 if (scribbleMode == Scribble) 153 153 scribble(freeCell, cellSize());
Note:
See TracChangeset
for help on using the changeset viewer.