Ignore:
Timestamp:
Feb 25, 2013, 5:13:43 AM (12 years ago)
Author:
[email protected]
Message:

[BlackBerry][ARM] Fix cast-align warnings in JavaScriptCore
https://bugs.webkit.org/show_bug.cgi?id=110738

Patch by Carlos Garcia Campos <[email protected]> on 2013-02-25
Reviewed by Rob Buis.

Use reinterpret_cast_ptr instead of reinterpret_cast for
pointers.

  • dfg/DFGOperations.cpp:
  • heap/CopiedBlock.h:

(JSC::CopiedBlock::zeroFillWilderness):

  • heap/WeakBlock.h:

(JSC::WeakBlock::asWeakImpl):
(JSC::WeakBlock::asFreeCell):
(JSC::WeakBlock::weakImpls):

  • heap/WeakImpl.h:

(JSC::WeakImpl::asWeakImpl):

  • interpreter/JSStack.cpp:

(JSC::JSStack::disableErrorStackReserve):

  • interpreter/JSStack.h:

(JSC::JSStack::reservationEnd):

  • runtime/ArrayStorage.h:

(JSC::ArrayStorage::from):

  • runtime/Butterfly.h:

(JSC::Butterfly::indexingPayload):

  • runtime/IndexingHeader.h:

(JSC::IndexingHeader::propertyStorage):

  • runtime/JSActivation.h:

(JSC::JSActivation::tearOff):
(JSC::JSActivation::isTornOff):
(JSC::JSActivation::storage):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/heap/WeakBlock.h

    r133812 r143909  
    9898inline WeakImpl* WeakBlock::asWeakImpl(FreeCell* freeCell)
    9999{
    100     return reinterpret_cast<WeakImpl*>(freeCell);
     100    return reinterpret_cast_ptr<WeakImpl*>(freeCell);
    101101}
    102102
     
    111111inline WeakBlock::FreeCell* WeakBlock::asFreeCell(WeakImpl* weakImpl)
    112112{
    113     return reinterpret_cast<FreeCell*>(weakImpl);
     113    return reinterpret_cast_ptr<FreeCell*>(weakImpl);
    114114}
    115115
    116116inline WeakImpl* WeakBlock::weakImpls()
    117117{
    118     return reinterpret_cast<WeakImpl*>(this) + ((sizeof(WeakBlock) + sizeof(WeakImpl) - 1) / sizeof(WeakImpl));
     118    return reinterpret_cast_ptr<WeakImpl*>(this) + ((sizeof(WeakBlock) + sizeof(WeakImpl) - 1) / sizeof(WeakImpl));
    119119}
    120120
Note: See TracChangeset for help on using the changeset viewer.