Changeset 41886 in webkit


Ignore:
Timestamp:
Mar 20, 2009 6:18:16 PM (15 years ago)
Author:
jmalonzo@webkit.org
Message:

2009-03-20 Mike Hommey <glandium@debian.org>

Reviewed by Mark Rowe. Committed by Jan Alonzo.

Use the proper definition of RETURN_PAIR on !MSVC

The other version is actually a work around for a quirk in the windows
ABI, so checking whether we're under MSVC is more a appropriate check for
it. It also happens this workaround is not 64-bits safe, so we also error
out on x86-64 MSVC.

Thanks Gavin Barraclough.

  • jit/JITStubs.h:
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r41884 r41886  
     12009-03-20  Mike Hommey  <glandium@debian.org>
     2
     3        Reviewed by Mark Rowe. Committed by Jan Alonzo.
     4
     5        Use the proper definition of RETURN_PAIR on !MSVC
     6
     7        The other version is actually a work around for a quirk in the windows
     8        ABI, so checking whether we're under MSVC is more a appropriate check for
     9        it. It also happens this workaround is not 64-bits safe, so we also error
     10        out on x86-64 MSVC.
     11
     12        Thanks Gavin Barraclough.
     13
     14        * jit/JITStubs.h:
     15
    1162009-03-20  Norbert Leser  <norbert.leser@nokia.com>
    217
  • trunk/JavaScriptCore/jit/JITStubs.h

    r41168 r41886  
    7575
    7676// The Mac compilers are fine with this,
    77 #if PLATFORM(MAC)
     77#if !COMPILER(MSVC)
    7878    struct VoidPtrPair {
    7979        void* first;
     
    8282#define RETURN_PAIR(a,b) VoidPtrPair pair = { a, b }; return pair
    8383#else
     84    #if PLATFORM(X86_64)
     85    #error MSVC version of RETURN_PAIR is not 64-bits safe
     86    #endif
    8487    typedef uint64_t VoidPtrPair;
    8588    union VoidPtrPairValue {
Note: See TracChangeset for help on using the changeset viewer.