6917N/AFixes endian issue in GFX on sparc and fixes atomic operations.
6917N/AWill not send upstream.
6917N/A
6917N/Adiff --git a/js/src/jit/AtomicOperations.h b/js/src/jit/AtomicOperations.h
6917N/A--- a/js/src/jit/AtomicOperations.h
6917N/A+++ b/js/src/jit/AtomicOperations.h
6917N/A@@ -297,17 +297,17 @@ AtomicOperations::isLockfree(int32_t siz
6917N/A #if defined(JS_CODEGEN_ARM)
6917N/A # include "jit/arm/AtomicOperations-arm.h"
6917N/A #elif defined(JS_CODEGEN_ARM64)
6917N/A # include "jit/arm64/AtomicOperations-arm64.h"
6917N/A #elif defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_MIPS64)
6917N/A # include "jit/mips-shared/AtomicOperations-mips-shared.h"
6917N/A #elif defined(__ppc64__) || defined(__PPC64_) \
6917N/A || defined(__ppc64le__) || defined(__PPC64LE__) \
6917N/A- || defined(__ppc__) || defined(__PPC__)
6917N/A+ || defined(__ppc__) || defined(__PPC__) || defined(__sparc)
6917N/A # include "jit/none/AtomicOperations-ppc.h"
6917N/A #elif defined(JS_CODEGEN_NONE)
6917N/A # include "jit/none/AtomicOperations-none.h"
6917N/A #elif defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64)
6917N/A # include "jit/x86-shared/AtomicOperations-x86-shared.h"
6917N/A #else
6917N/A # error "Atomic operations must be defined for this platform"
6917N/A #endif
6917N/A--- a/gfx/2d/Types.h Tue May 3 14:20:54 2016
6917N/A+++ b/gfx/2d/Types.h Tue May 3 13:43:00 2016
6917N/A@@ -61,15 +61,8 @@
6917N/A // The following values are endian-independent synonyms. The _UINT32 suffix
6917N/A // indicates that the name reflects the layout when viewed as a uint32_t
6917N/A // value.
6917N/A-#if MOZ_LITTLE_ENDIAN
6917N/A A8R8G8B8_UINT32 = B8G8R8A8, // 0xAARRGGBB
6917N/A X8R8G8B8_UINT32 = B8G8R8X8 // 0x00RRGGBB
6917N/A-#elif MOZ_BIG_ENDIAN
6917N/A- A8R8G8B8_UINT32 = A8R8G8B8, // 0xAARRGGBB
6917N/A- X8R8G8B8_UINT32 = X8R8G8B8 // 0x00RRGGBB
6917N/A-#else
6917N/A-# error "bad endianness"
6917N/A-#endif
6917N/A };
6917N/A
6917N/A inline bool IsOpaque(SurfaceFormat aFormat)