| Index: src/mips/assembler-mips.h
|
| diff --git a/src/mips/assembler-mips.h b/src/mips/assembler-mips.h
|
| index da9762024216eca087955fd463e77a5396d71ca4..fc7f5ace83573f39bde9dcc1cad7673c9b742697 100644
|
| --- a/src/mips/assembler-mips.h
|
| +++ b/src/mips/assembler-mips.h
|
| @@ -416,6 +416,16 @@ class Assembler : public AssemblerBase {
|
| bool is_near(Label* L);
|
| bool is_near(Label* L, OffsetSize bits);
|
| bool is_near_branch(Label* L);
|
| + inline bool is_near_pre_r6(Label* L) {
|
| + DCHECK(!IsMipsArchVariant(kMips32r6));
|
| + return pc_offset() - L->pos() < kMaxBranchOffset - 4 * kInstrSize;
|
| + }
|
| + inline bool is_near_r6(Label* L) {
|
| + DCHECK(IsMipsArchVariant(kMips32r6));
|
| + return pc_offset() - L->pos() < kMaxCompactBranchOffset - 4 * kInstrSize;
|
| + }
|
| +
|
| + int BranchOffset(Instr instr);
|
|
|
| // Returns the branch offset to the given label from the current code
|
| // position. Links the label to the current position if it is still unbound.
|
|
|