| Index: src/globals.h
 | 
| diff --git a/src/globals.h b/src/globals.h
 | 
| index db666d804b1039e0a61dce21c55302d5e7a4a174..92401f6b3951cc11b892744c574d4596e161f999 100644
 | 
| --- a/src/globals.h
 | 
| +++ b/src/globals.h
 | 
| @@ -78,7 +78,7 @@ namespace internal {
 | 
|  #elif defined(__ARMEL__)
 | 
|  #define V8_HOST_ARCH_ARM 1
 | 
|  #define V8_HOST_ARCH_32_BIT 1
 | 
| -#elif defined(__MIPSEL__)
 | 
| +#elif defined(__MIPSEB__) || defined(__MIPSEL__)
 | 
|  #define V8_HOST_ARCH_MIPS 1
 | 
|  #define V8_HOST_ARCH_32_BIT 1
 | 
|  #else
 | 
| @@ -108,7 +108,7 @@ namespace internal {
 | 
|  #define V8_TARGET_ARCH_ARM64 1
 | 
|  #elif defined(__ARMEL__)
 | 
|  #define V8_TARGET_ARCH_ARM 1
 | 
| -#elif defined(__MIPSEL__)
 | 
| +#elif defined(__MIPSEB__) || defined(__MIPSEL__)
 | 
|  #define V8_TARGET_ARCH_MIPS 1
 | 
|  #else
 | 
|  #error Target architecture was not detected as supported by v8
 | 
| @@ -147,7 +147,7 @@ namespace internal {
 | 
|  #endif
 | 
|  #endif
 | 
|  
 | 
| -// Determine architecture endiannes (we only support little-endian).
 | 
| +// Determine architecture endianness.
 | 
|  #if V8_TARGET_ARCH_IA32
 | 
|  #define V8_TARGET_LITTLE_ENDIAN 1
 | 
|  #elif V8_TARGET_ARCH_X64
 | 
| @@ -157,9 +157,13 @@ namespace internal {
 | 
|  #elif V8_TARGET_ARCH_ARM64
 | 
|  #define V8_TARGET_LITTLE_ENDIAN 1
 | 
|  #elif V8_TARGET_ARCH_MIPS
 | 
| +#if defined(__MIPSEB__)
 | 
| +#define V8_TARGET_BIG_ENDIAN 1
 | 
| +#else
 | 
|  #define V8_TARGET_LITTLE_ENDIAN 1
 | 
| +#endif
 | 
|  #else
 | 
| -#error Unknown target architecture endiannes
 | 
| +#error Unknown target architecture endianness
 | 
|  #endif
 | 
|  
 | 
|  // Determine whether the architecture uses an out-of-line constant pool.
 | 
| 
 |