| Index: src/mips64/constants-mips64.h
|
| diff --git a/src/mips64/constants-mips64.h b/src/mips64/constants-mips64.h
|
| index 51e665f7ec869459bab0cfb3ff6b86d0a042062f..f23f103ac394a9c75730dc6b3408dbe2109780c5 100644
|
| --- a/src/mips64/constants-mips64.h
|
| +++ b/src/mips64/constants-mips64.h
|
| @@ -35,6 +35,16 @@ enum ArchVariants {
|
| #endif
|
|
|
|
|
| + enum Endianness { kLittle, kBig };
|
| +
|
| +#if defined(V8_TARGET_LITTLE_ENDIAN)
|
| + static const Endianness kArchEndian = kLittle;
|
| +#elif defined(V8_TARGET_BIG_ENDIAN)
|
| + static const Endianness kArchEndian = kBig;
|
| +#else
|
| +#error Unknown endianness
|
| +#endif
|
| +
|
| // TODO(plind): consider deriving ABI from compiler flags or build system.
|
|
|
| // ABI-dependent definitions are made with #define in simulator-mips64.h,
|
|
|