Bug 1017036 - IonMonkey MIPS: Add mulBy3 method as follow-up to bug 1004726. r=nbp
authorBranislav Rankov <branislav.rankov@imgtec.com>
Tue, 03 Jun 2014 14:20:55 +0200
changeset 205864 4265f3812f03d522ea29048289880a07620cd893
parent 205863 94ea45f19f1f82977e2865fe8ab59dcd708aa75c
child 205865 66fb92de1240258bf9d36673282c8abaf6365b96
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-beta@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnbp
bugs1017036, 1004726
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1017036 - IonMonkey MIPS: Add mulBy3 method as follow-up to bug 1004726. r=nbp
js/src/jit/mips/MacroAssembler-mips.h
--- a/js/src/jit/mips/MacroAssembler-mips.h
+++ b/js/src/jit/mips/MacroAssembler-mips.h
@@ -1129,16 +1129,20 @@ public:
     void addPtr(Imm32 imm, const Register dest);
     void addPtr(Imm32 imm, const Address &dest);
     void addPtr(ImmWord imm, const Register dest) {
         addPtr(Imm32(imm.value), dest);
     }
     void addPtr(ImmPtr imm, const Register dest) {
         addPtr(ImmWord(uintptr_t(imm.value)), dest);
     }
+    void mulBy3(const Register &src, const Register &dest) {
+        as_addu(dest, src, src);
+        as_addu(dest, dest, src);
+    }
 
     void breakpoint();
 
     void branchDouble(DoubleCondition cond, FloatRegister lhs, FloatRegister rhs,
                       Label *label);
 
     void branchFloat(DoubleCondition cond, FloatRegister lhs, FloatRegister rhs,
                      Label *label);