Bug 1115752 - SpiderMonkey: Avoid using disp32 when unnecessary r=jandem
authorDan Gohman <sunfish@mozilla.com>
Sun, 28 Dec 2014 07:04:11 -0800
changeset 238171 09a2d1f803a482ec13a85b1178f93b56fa6663ff
parent 238170 00b8d104bf316de61faf22b9564b1103da1d70d1
child 238172 f6335334bbe85404f0cc7fad30d09d9ec454852f
push id7472
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 20:36:27 +0000
treeherdermozilla-aurora@300ca104f8fb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1115752
milestone37.0a1
Bug 1115752 - SpiderMonkey: Avoid using disp32 when unnecessary r=jandem
js/src/jit/shared/BaseAssembler-x86-shared.h
--- a/js/src/jit/shared/BaseAssembler-x86-shared.h
+++ b/js/src/jit/shared/BaseAssembler-x86-shared.h
@@ -4599,17 +4599,17 @@ private:
 
         void twoByteOpVex(VexOperandType ty, TwoByteOpcodeID opcode,
                           int offset, RegisterID base, XMMRegisterID src0, int reg)
         {
             int r = (reg >> 3), x = 0, b = (base >> 3);
             int m = 1; // 0x0F
             int w = 0, v = src0, l = 0;
             threeOpVex(ty, r, x, b, m, w, v, l, opcode);
-            memoryModRM_disp32(offset, base, reg);
+            memoryModRM(offset, base, reg);
         }
 
         void twoByteOp_disp32(TwoByteOpcodeID opcode, int offset, RegisterID base, int reg)
         {
             m_buffer.ensureSpace(maxInstructionSize);
             emitRexIfNeeded(reg, 0, base);
             m_buffer.putByteUnchecked(OP_2BYTE_ESCAPE);
             m_buffer.putByteUnchecked(opcode);