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

Changeset 126906 in webkit


Ignore:
Timestamp:
Aug 28, 2012, 11:42:07 AM (14 years ago)
Author:
ggaren@apple.com
Message:

GCC warning in JSActivation is causing Mac EWS errors
https://bugs.webkit.org/show_bug.cgi?id=95103

Reviewed by Sam Weinig.

Try to fix a strict aliasing violation by using bitwise_cast. The
union in the cast should signal to the compiler that aliasing between
types is happening.

  • runtime/JSActivation.cpp:

(JSC::JSActivation::visitChildren):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r126897 r126906  
     12012-08-28  Geoffrey Garen  <ggaren@apple.com>
     2
     3        GCC warning in JSActivation is causing Mac EWS errors
     4        https://bugs.webkit.org/show_bug.cgi?id=95103
     5
     6        Reviewed by Sam Weinig.
     7
     8        Try to fix a strict aliasing violation by using bitwise_cast. The
     9        union in the cast should signal to the compiler that aliasing between
     10        types is happening.
     11
     12        * runtime/JSActivation.cpp:
     13        (JSC::JSActivation::visitChildren):
     14
    1152012-08-28  Geoffrey Garen  <ggaren@apple.com>
    216
  • trunk/Source/JavaScriptCore/runtime/JSActivation.cpp

    r126837 r126906  
    7272        return;
    7373
    74     visitor.copyAndAppend(reinterpret_cast<void**>(&registerArray), thisObject->registerArraySizeInBytes(), reinterpret_cast<JSValue*>(registerArray), thisObject->registerArraySize());
     74    visitor.copyAndAppend(bitwise_cast<void**>(&registerArray), thisObject->registerArraySizeInBytes(), reinterpret_cast<JSValue*>(registerArray), thisObject->registerArraySize());
    7575    thisObject->m_registerArray.set(registerArray, StorageBarrier::Unchecked);
    7676    thisObject->m_registers = registerArray + thisObject->registerOffset();
Note: See TracChangeset for help on using the changeset viewer.