Index: src/mips64/constants-mips64.h |
diff --git a/src/mips64/constants-mips64.h b/src/mips64/constants-mips64.h |
index 0bb26a6960f1817044f0e37f6096b2978308a1fc..82724201d9fea0f4370dcb8cce8d58abe7b5a221 100644 |
--- a/src/mips64/constants-mips64.h |
+++ b/src/mips64/constants-mips64.h |
@@ -60,6 +60,27 @@ const bool IsMipsSoftFloatABI = true; |
const bool IsMipsSoftFloatABI = true; |
#endif |
+#if defined(V8_TARGET_LITTLE_ENDIAN) |
+const uint32_t kMipsLwrOffset = 0; |
+const uint32_t kMipsLwlOffset = 3; |
+const uint32_t kMipsSwrOffset = 0; |
+const uint32_t kMipsSwlOffset = 3; |
+const uint32_t kMipsLdrOffset = 0; |
+const uint32_t kMipsLdlOffset = 7; |
+const uint32_t kMipsSdrOffset = 0; |
+const uint32_t kMipsSdlOffset = 7; |
+#elif defined(V8_TARGET_BIG_ENDIAN) |
+const uint32_t kMipsLwrOffset = 3; |
+const uint32_t kMipsLwlOffset = 0; |
+const uint32_t kMipsSwrOffset = 3; |
+const uint32_t kMipsSwlOffset = 0; |
+const uint32_t kMipsLdrOffset = 7; |
+const uint32_t kMipsLdlOffset = 0; |
+const uint32_t kMipsSdrOffset = 7; |
+const uint32_t kMipsSdlOffset = 0; |
+#else |
+#error Unknown endianness |
+#endif |
#ifndef __STDC_FORMAT_MACROS |
#define __STDC_FORMAT_MACROS |
@@ -911,7 +932,6 @@ class Instruction { |
enum TypeChecks { NORMAL, EXTRA }; |
- |
static constexpr uint64_t kOpcodeImmediateTypeMask = |
OpcodeToBitNumber(REGIMM) | OpcodeToBitNumber(BEQ) | |
OpcodeToBitNumber(BNE) | OpcodeToBitNumber(BLEZ) | |
@@ -926,12 +946,14 @@ class Instruction { |
OpcodeToBitNumber(POP76) | OpcodeToBitNumber(LB) | OpcodeToBitNumber(LH) | |
OpcodeToBitNumber(LWL) | OpcodeToBitNumber(LW) | OpcodeToBitNumber(LWU) | |
OpcodeToBitNumber(LD) | OpcodeToBitNumber(LBU) | OpcodeToBitNumber(LHU) | |
- OpcodeToBitNumber(LWR) | OpcodeToBitNumber(SB) | OpcodeToBitNumber(SH) | |
+ OpcodeToBitNumber(LDL) | OpcodeToBitNumber(LDR) | OpcodeToBitNumber(LWR) | |
+ OpcodeToBitNumber(SDL) | OpcodeToBitNumber(SB) | OpcodeToBitNumber(SH) | |
OpcodeToBitNumber(SWL) | OpcodeToBitNumber(SW) | OpcodeToBitNumber(SD) | |
- OpcodeToBitNumber(SWR) | OpcodeToBitNumber(LWC1) | |
- OpcodeToBitNumber(LDC1) | OpcodeToBitNumber(SWC1) | |
- OpcodeToBitNumber(SDC1) | OpcodeToBitNumber(PCREL) | |
- OpcodeToBitNumber(DAUI) | OpcodeToBitNumber(BC) | OpcodeToBitNumber(BALC); |
+ OpcodeToBitNumber(SWR) | OpcodeToBitNumber(SDR) | |
+ OpcodeToBitNumber(LWC1) | OpcodeToBitNumber(LDC1) | |
+ OpcodeToBitNumber(SWC1) | OpcodeToBitNumber(SDC1) | |
+ OpcodeToBitNumber(PCREL) | OpcodeToBitNumber(DAUI) | |
+ OpcodeToBitNumber(BC) | OpcodeToBitNumber(BALC); |
#define FunctionFieldToBitNumber(function) (1ULL << function) |