2010-01-04 Maciej Stachowiak <mjs@apple.com>
authormjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jan 2010 13:18:51 +0000 (13:18 +0000)
committermjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jan 2010 13:18:51 +0000 (13:18 +0000)
        Reviewed by Simon Hausmann.

        Fix some PLATFORM(*_ENDIAN) uses to CPU()
        https://bugs.webkit.org/show_bug.cgi?id=33148

        * runtime/JSCell.cpp:
        (JSC::):
        * runtime/JSValue.h:
        (JSC::JSValue::):
2010-01-04  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Simon Hausmann.

        Fix some PLATFORM(*_ENDIAN) uses to CPU()
        https://bugs.webkit.org/show_bug.cgi?id=33148

        * platform/image-decoders/bmp/BMPImageReader.h:
        (WebCore::BMPImageReader::readUint16):
        (WebCore::BMPImageReader::readUint32):
        (WebCore::BMPImageReader::readCurrentPixel):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52731 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/runtime/JSCell.cpp
JavaScriptCore/runtime/JSValue.h
WebCore/ChangeLog
WebCore/platform/image-decoders/bmp/BMPImageReader.h

index dacacec79b72a255e4846e9cc3ceb9c424391d82..5d507e001c37e48d375452ee62f5827667f5852d 100644 (file)
@@ -1,3 +1,15 @@
+2010-01-04  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Simon Hausmann.
+
+        Fix some PLATFORM(*_ENDIAN) uses to CPU()
+        https://bugs.webkit.org/show_bug.cgi?id=33148
+
+        * runtime/JSCell.cpp:
+        (JSC::):
+        * runtime/JSValue.h:
+        (JSC::JSValue::):
+
 2010-01-04  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Adam Barth.
index b2ba25b4c46c5e80fa2082d6b8ae2120da91cbbf..869fbfc883e0ab2bd0d0a859090a02e43c2a36cf 100644 (file)
@@ -59,10 +59,10 @@ static const union {
     } doubles;
     
 } NaNInf = { {
-#if PLATFORM(BIG_ENDIAN)
+#if CPU(BIG_ENDIAN)
     { 0x7f, 0xf8, 0, 0, 0, 0, 0, 0 },
     { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 }
-#elif PLATFORM(MIDDLE_ENDIAN)
+#elif CPU(MIDDLE_ENDIAN)
     { 0, 0, 0xf8, 0x7f, 0, 0, 0, 0 },
     { 0, 0, 0xf0, 0x7f, 0, 0, 0, 0 }
 #else
index aeffc0c984703bdb752a4c454c999977d197cc8a..6da921f307cba69ff9babb7b862c461a3e516034 100644 (file)
@@ -235,7 +235,7 @@ namespace JSC {
         union {
             EncodedJSValue asEncodedJSValue;
             double asDouble;
-#if PLATFORM(BIG_ENDIAN)
+#if CPU(BIG_ENDIAN)
             struct {
                 int32_t tag;
                 int32_t payload;
index 972f630c5c8fd3cb77c284e926d5a9b6b9daeace..910827fe474b6a8070ad70771daa16e70e0ef4d3 100644 (file)
@@ -1,3 +1,15 @@
+2010-01-04  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Simon Hausmann.
+
+        Fix some PLATFORM(*_ENDIAN) uses to CPU()
+        https://bugs.webkit.org/show_bug.cgi?id=33148
+
+        * platform/image-decoders/bmp/BMPImageReader.h:
+        (WebCore::BMPImageReader::readUint16):
+        (WebCore::BMPImageReader::readUint32):
+        (WebCore::BMPImageReader::readCurrentPixel):
+
 2010-01-04  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Adam Barth.
index 1271172426b4127d62fdb113950f311236f0e08f..3536e3b4a32df71834817b3d3837c5e0fbfee9c4 100644 (file)
@@ -46,7 +46,7 @@ namespace WebCore {
         {
             uint16_t result;
             memcpy(&result, &data->data()[offset], 2);
-        #if PLATFORM(BIG_ENDIAN)
+        #if CPU(BIG_ENDIAN)
             result = ((result & 0xff) << 8) | ((result & 0xff00) >> 8);
         #endif
             return result;
@@ -56,7 +56,7 @@ namespace WebCore {
         {
             uint32_t result;
             memcpy(&result, &data->data()[offset], 4);
-        #if PLATFORM(BIG_ENDIAN)
+        #if CPU(BIG_ENDIAN)
             result = ((result & 0xff) << 24) | ((result & 0xff00) << 8) |
                 ((result & 0xff0000) >> 8) | ((result & 0xff000000) >> 24);
         #endif
@@ -202,7 +202,7 @@ namespace WebCore {
                 // won't read it.
                 uint32_t pixel;
                 memcpy(&pixel, &m_data->data()[m_decodedOffset + offset], 3);
-        #if PLATFORM(BIG_ENDIAN)
+        #if CPU(BIG_ENDIAN)
                 pixel = ((pixel & 0xff00) << 8) | ((pixel & 0xff0000) >> 8) |
                     ((pixel & 0xff000000) >> 24);
         #endif