Changeset 31088 in webkit


Ignore:
Timestamp:
Mar 16, 2008, 8:26:42 PM (17 years ago)
Author:
Darin Adler
Message:

2008-03-16 weihongzeng <weihong.zeng@hotmail.com>


Reviewed by Darin Adler.


http://bugs.webkit.org/show_bug.cgi?id=15416
Add support for mixed-endian processors


  • kjs/dtoa.cpp: Add IEEE_ARM, triggered by PLATFORM(MIDDLE_ENDIAN).
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r31087 r31088  
     1 2008-03-16  weihongzeng  <weihong.zeng@hotmail.com>
     2 
     3         Reviewed by Darin Adler.
     4 
     5         http://bugs.webkit.org/show_bug.cgi?id=15416
     6         Add support for mixed-endian processors
     7 
     8         * kjs/dtoa.cpp: Add IEEE_ARM, triggered by PLATFORM(MIDDLE_ENDIAN).
     9 
    1102008-03-16  Kevin Ollivier  <kevino@theolliviers.com>
    211
  • trunk/JavaScriptCore/kjs/dtoa.cpp

    r28771 r31088  
    180180#if PLATFORM(BIG_ENDIAN)
    181181#define IEEE_MC68k
     182#elif PLATFORM(MIDDLE_ENDIAN)
     183#define IEEE_ARM
    182184#else
    183185#define IEEE_8087
     
    226228#endif
    227229#ifdef IEEE_8087
     230#define IEEE_Arith
     231#endif
     232#ifdef IEEE_ARM
    228233#define IEEE_Arith
    229234#endif
     
    284289#endif
    285290
    286 #if defined(IEEE_8087) + defined(IEEE_MC68k) + defined(VAX) + defined(IBM) != 1
    287 Exactly one of IEEE_8087, IEEE_MC68k, VAX, or IBM should be defined.
     291#if defined(IEEE_8087) + defined(IEEE_MC68k) + defined(IEEE_ARM) + defined(VAX) + defined(IBM) != 1
     292Exactly one of IEEE_8087, IEEE_ARM, IEEE_MC68k, VAX, or IBM should be defined.
    288293#endif
    289294
     
    314319 * #define Storeinc(a,b,c) (*a++ = b << 16 | c & 0xffff)
    315320 */
    316 #if defined(IEEE_8087) + defined(VAX)
     321#if defined(IEEE_8087) + defined(IEEE_ARM) + defined(VAX)
    317322#define Storeinc(a,b,c) (((unsigned short *)a)[1] = (unsigned short)b, \
    318323((unsigned short *)a)[0] = (unsigned short)c, a++)
Note: See TracChangeset for help on using the changeset viewer.