Bug 488775 - TM: widen LIR instructions. Sparc Changes. r=gal. remove dead codes
authorLeon Sha<leon.sha@sun.com>
Tue, 12 May 2009 11:45:02 +0800
changeset 28220 ebe91f08f583165f3a6c8d90bc8c541aba2b7605
parent 28219 f4853aaa2317074c6127d1b1f378b88d50035dd7
child 28221 57a720902b6659479d7c950aa519d7101160ccd3
push id6950
push userleon.sha@sun.com
push dateTue, 12 May 2009 03:45:27 +0000
treeherdermozilla-central@ebe91f08f583 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgal
bugs488775
milestone1.9.2a1pre
Bug 488775 - TM: widen LIR instructions. Sparc Changes. r=gal. remove dead codes
js/src/nanojit/NativeSparc.cpp
--- a/js/src/nanojit/NativeSparc.cpp
+++ b/js/src/nanojit/NativeSparc.cpp
@@ -401,17 +401,16 @@ namespace nanojit
     void Assembler::asm_store64(LInsp value, int dr, LInsp base)
     {
         underrunProtect(48);
         if (value->isconstq())
             {
                 // if a constant 64-bit value just store it now rather than
                 // generating a pointless store/load/store sequence
                 Register rb = findRegFor(base, GpRegs);
-                const int32_t* p = (const int32_t*) (value-2);
                 STW32(L0, dr+4, rb);
                 SET32(value->imm64_0(), L0);
                 STW32(L0, dr, rb);
                 SET32(value->imm64_1(), L0);
                 return;
             }
 
         if (value->isop(LIR_ldq) || value->isop(LIR_ldqc) || value->isop(LIR_qjoin))
@@ -871,17 +870,16 @@ namespace nanojit
 
         // @todo, if we used xor, ldsd, fldz, etc above, we don't need mem here
         int d = disp(rR);
         freeRsrcOf(ins, false);
         if (d)
             {
                 Register r = registerAlloc(GpRegs);
                 _allocator.addFree(r);
-                const int32_t* p = (const int32_t*) (ins-2);
                 STW32(r, d+4, FP);
                 SET32(ins->imm64_0(), r);
                 STW32(r, d, FP);
                 SET32(ins->imm64_1(), r);
             }
     }
     
     void Assembler::asm_qlo(LInsp ins)