Index: src/mips/macro-assembler-mips.h |
diff --git a/src/mips/macro-assembler-mips.h b/src/mips/macro-assembler-mips.h |
index 85ba81d82cbdaf54c1ee58c2d95ca2594d574d7c..925860200f1b584ccc985dddc850d3b213ea200a 100644 |
--- a/src/mips/macro-assembler-mips.h |
+++ b/src/mips/macro-assembler-mips.h |
@@ -164,9 +164,9 @@ class MacroAssembler: public Assembler { |
Name(target, COND_ARGS, bd); \ |
} |
-#define DECLARE_BRANCH_PROTOTYPES(Name) \ |
+#define DECLARE_BRANCH_PROTOTYPES(Name) \ |
DECLARE_NORELOC_PROTOTYPE(Name, Label*) \ |
- DECLARE_NORELOC_PROTOTYPE(Name, int16_t) |
+ DECLARE_NORELOC_PROTOTYPE(Name, int32_t) |
DECLARE_BRANCH_PROTOTYPES(Branch) |
DECLARE_BRANCH_PROTOTYPES(BranchAndLink) |
@@ -203,6 +203,8 @@ class MacroAssembler: public Assembler { |
Ret(cond, rs, rt, bd); |
} |
+ bool IsNear(Label* L, Condition cond, int rs_reg); |
+ |
void Branch(Label* L, |
Condition cond, |
Register rs, |
@@ -1630,10 +1632,25 @@ const Operand& rt = Operand(zero_reg), BranchDelaySlot bd = PROTECT |
int num_reg_arguments, |
int num_double_arguments); |
- void BranchAndLinkShort(int16_t offset, BranchDelaySlot bdslot = PROTECT); |
- void BranchAndLinkShort(int16_t offset, Condition cond, Register rs, |
- const Operand& rt, |
- BranchDelaySlot bdslot = PROTECT); |
+ Register GetRtAsRegisterHelper(const Operand& rt, Register scratch); |
+ inline int32_t GetOffset(int32_t offset, Label* L, int bits); |
+ void BranchShortHelperR6(int32_t offset, Label* L); |
+ void BranchShortHelper(int16_t offset, Label* L, BranchDelaySlot bdslot); |
+ void BranchShortHelperR6(int32_t offset, Label* L, Condition cond, |
+ Register rs, const Operand& rt); |
+ void BranchShortHelper(int16_t offset, Label* L, Condition cond, Register rs, |
+ const Operand& rt, BranchDelaySlot bdslot); |
+ void BranchAndLinkShortHelperR6(int32_t offset, Label* L); |
+ void BranchAndLinkShortHelper(int16_t offset, Label* L, |
+ BranchDelaySlot bdslot); |
+ void BranchAndLinkShort(int32_t offset, BranchDelaySlot bdslot = PROTECT); |
+ void BranchAndLinkShortHelperR6(int32_t offset, Label* L, Condition cond, |
+ Register rs, const Operand& rt); |
+ void BranchAndLinkShortHelper(int16_t offset, Label* L, Condition cond, |
+ Register rs, const Operand& rt, |
+ BranchDelaySlot bdslot); |
+ void BranchAndLinkShort(int32_t offset, Condition cond, Register rs, |
+ const Operand& rt, BranchDelaySlot bdslot = PROTECT); |
void BranchAndLinkShort(Label* L, BranchDelaySlot bdslot = PROTECT); |
void BranchAndLinkShort(Label* L, Condition cond, Register rs, |
const Operand& rt, |
@@ -1724,7 +1741,7 @@ class CodePatcher { |
// Change the condition part of an instruction leaving the rest of the current |
// instruction unchanged. |
- void ChangeBranchCondition(Condition cond); |
+ void ChangeBranchCondition(); |
private: |
byte* address_; // The address of the code being patched. |