Index: src/mips64/assembler-mips64.h |
diff --git a/src/mips64/assembler-mips64.h b/src/mips64/assembler-mips64.h |
index caf3ecfc9302c87129f8bd799a6fd38f4013799e..e3786a7e8caa05420c8c17b7d82e9f4f33f05e5a 100644 |
--- a/src/mips64/assembler-mips64.h |
+++ b/src/mips64/assembler-mips64.h |
@@ -559,6 +559,13 @@ class Assembler : public AssemblerBase { |
static const int kDebugBreakSlotLength = |
kDebugBreakSlotInstructions * kInstrSize; |
+ // Max offset for instructions with 16-bit offset field |
+ static const int kMaxBranchOffset = (1 << (18 - 1)) - 1; |
+ |
+ // Max offset for compact branch instructions with 26-bit offset field |
+ static const int kMaxCompactBranchOffset = (1 << (28 - 1)) - 1; |
+ |
+ static const int kTrampolineSlotsSize = 2 * kInstrSize; |
// --------------------------------------------------------------------------- |
// Code generation. |
@@ -1223,6 +1230,7 @@ class Assembler : public AssemblerBase { |
} |
bool IsPrevInstrCompactBranch() { return prev_instr_compact_branch_; } |
+ static bool IsCompactBranchSupported() { return kArchVariant == kMips64r6; } |
inline int UnboundLabelsCount() { return unbound_labels_count_; } |
@@ -1495,9 +1503,6 @@ class Assembler : public AssemblerBase { |
// branch instruction generation, where we use jump instructions rather |
// than regular branch instructions. |
bool trampoline_emitted_; |
- static const int kTrampolineSlotsSize = 2 * kInstrSize; |
- static const int kMaxBranchOffset = (1 << (18 - 1)) - 1; |
- static const int kMaxCompactBranchOffset = (1 << (28 - 1)) - 1; |
static const int kInvalidSlotPos = -1; |
// Internal reference positions, required for unbounded internal reference |