⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 207983 in webkit


Ignore:
Timestamp:
Oct 27, 2016, 3:43:20 AM (10 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r207659 - Fix JSC cast-align compiler warnings on ARMv7
​https://bugs.webkit.org/show_bug.cgi?id=163744

Reviewed by Mark Lam.

Use the reinterpret_cast_ptr workaround in a few places where
the cast alignment warning is being thrown by the GCC compiler
when compiling for the ARMv7 architecture.

  • heap/Heap.cpp:

(JSC::Zombify::visit):

  • heap/HeapCell.h:

(JSC::HeapCell::zap):
(JSC::HeapCell::isZapped):

  • heap/MarkedBlock.cpp:

(JSC::MarkedBlock::Handle::specializedSweep):

Location:
releases/WebKitGTK/webkit-2.14/Source/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.14/Source/JavaScriptCore/ChangeLog

    r207113 r207983  
     12016-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
    1202016-09-27  Michael Catanzaro  <mcatanzaro@igalia.com>
    221
  • releases/WebKitGTK/webkit-2.14/Source/JavaScriptCore/heap/Heap.cpp

    r205717 r207983  
    15421542    inline void visit(HeapCell* cell) const
    15431543    {
    1544         void** current = reinterpret_cast<void**>(cell);
     1544        void** current = reinterpret_cast_ptr<void**>(cell);
    15451545
    15461546        // 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  
    4646    HeapCell() { }
    4747   
    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); }
    5050   
    5151    bool isLargeAllocation() const;
  • releases/WebKitGTK/webkit-2.14/Source/JavaScriptCore/heap/MarkedBlock.cpp

    r207061 r207983  
    149149
    150150        if (sweepMode == SweepToFreeList) {
    151             FreeCell* freeCell = reinterpret_cast<FreeCell*>(cell);
     151            FreeCell* freeCell = reinterpret_cast_ptr<FreeCell*>(cell);
    152152            if (scribbleMode == Scribble)
    153153                scribble(freeCell, cellSize());
Note: See TracChangeset for help on using the changeset viewer.