Index: src/mips64/macro-assembler-mips64.h |
diff --git a/src/mips64/macro-assembler-mips64.h b/src/mips64/macro-assembler-mips64.h |
index 216f4b996f2503dc9503c3cde7ebeca5020f47b9..37574efd3efb5391cfe0dc3f022c97ea7180886a 100644 |
--- a/src/mips64/macro-assembler-mips64.h |
+++ b/src/mips64/macro-assembler-mips64.h |
@@ -1298,32 +1298,41 @@ class MacroAssembler: public Assembler { |
// Usage: first call the appropriate arithmetic function, then call one of the |
// jump functions with the overflow_dst register as the second parameter. |
- void AdduAndCheckForOverflow(Register dst, |
- Register left, |
- Register right, |
- Register overflow_dst, |
- Register scratch = at); |
+ inline void AddBranchOvf(Register dst, Register left, const Operand& right, |
+ Label* overflow_label, Register scratch = at) { |
+ AddBranchOvf(dst, left, right, overflow_label, nullptr, scratch); |
+ } |
+ |
+ inline void AddBranchNoOvf(Register dst, Register left, const Operand& right, |
+ Label* no_overflow_label, Register scratch = at) { |
+ AddBranchOvf(dst, left, right, nullptr, no_overflow_label, scratch); |
+ } |
+ |
+ void AddBranchOvf(Register dst, Register left, const Operand& right, |
+ Label* overflow_label, Label* no_overflow_label, |
+ Register scratch = at); |
- void AdduAndCheckForOverflow(Register dst, Register left, |
- const Operand& right, Register overflow_dst, |
- Register scratch); |
+ void AddBranchOvf(Register dst, Register left, Register right, |
+ Label* overflow_label, Label* no_overflow_label, |
+ Register scratch = at); |
- void SubuAndCheckForOverflow(Register dst, |
- Register left, |
- Register right, |
- Register overflow_dst, |
- Register scratch = at); |
+ inline void SubBranchOvf(Register dst, Register left, const Operand& right, |
+ Label* overflow_label, Register scratch = at) { |
+ SubBranchOvf(dst, left, right, overflow_label, nullptr, scratch); |
+ } |
- void SubuAndCheckForOverflow(Register dst, Register left, |
- const Operand& right, Register overflow_dst, |
- Register scratch); |
+ inline void SubBranchNoOvf(Register dst, Register left, const Operand& right, |
+ Label* no_overflow_label, Register scratch = at) { |
+ SubBranchOvf(dst, left, right, nullptr, no_overflow_label, scratch); |
+ } |
- void DadduAndCheckForOverflow(Register dst, Register left, Register right, |
- Register overflow_dst, Register scratch = at); |
+ void SubBranchOvf(Register dst, Register left, const Operand& right, |
+ Label* overflow_label, Label* no_overflow_label, |
+ Register scratch = at); |
- void DadduAndCheckForOverflow(Register dst, Register left, |
- const Operand& right, Register overflow_dst, |
- Register scratch); |
+ void SubBranchOvf(Register dst, Register left, Register right, |
+ Label* overflow_label, Label* no_overflow_label, |
+ Register scratch = at); |
inline void DaddBranchOvf(Register dst, Register left, const Operand& right, |
Label* overflow_label, Register scratch = at) { |
@@ -1343,13 +1352,6 @@ class MacroAssembler: public Assembler { |
Label* overflow_label, Label* no_overflow_label, |
Register scratch = at); |
- void DsubuAndCheckForOverflow(Register dst, Register left, Register right, |
- Register overflow_dst, Register scratch = at); |
- |
- void DsubuAndCheckForOverflow(Register dst, Register left, |
- const Operand& right, Register overflow_dst, |
- Register scratch); |
- |
inline void DsubBranchOvf(Register dst, Register left, const Operand& right, |
Label* overflow_label, Register scratch = at) { |
DsubBranchOvf(dst, left, right, overflow_label, nullptr, scratch); |