harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfur...@apache.org
Subject svn commit: r560224 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/IpfInstCodeSelector.cpp
Date Fri, 27 Jul 2007 13:31:27 GMT
Author: mfursov
Date: Fri Jul 27 06:31:26 2007
New Revision: 560224

URL: http://svn.apache.org/viewvc?view=rev&rev=560224
Log:
Fixing regression introduced by HARMONY-2533 refactoring. Removing dead-code for IPF platform

Modified:
    harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/IpfInstCodeSelector.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/IpfInstCodeSelector.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/IpfInstCodeSelector.cpp?view=diff&rev=560224&r1=560223&r2=560224
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/IpfInstCodeSelector.cpp
(original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/IpfInstCodeSelector.cpp
Fri Jul 27 06:31:26 2007
@@ -203,41 +203,6 @@
     return dst;
 }   
 
-//----------------------------------------------------------------------------//
-// Subtract reference from reference and scale down by element type.
-
-CG_OpndHandle *IpfInstCodeSelector::scaledDiffRef(CG_OpndHandle *src1_, 
-                                                  CG_OpndHandle *src2_,
-                                                  Type          *type1,
-                                                  Type          *type2) {
-
-    IPF_LOG << "      scaledDiffRef" << endl;
-    IPF_ASSERT(type1->isManagedPtr() && type1==type2);
-    IPF_ASSERT(((Opnd *)src1_)->isReg());
-    IPF_ASSERT(((Opnd *)src2_)->isReg());
-
-    Opnd    *src1     = (Opnd *)src1_;
-    Opnd    *src2     = (Opnd *)src2_;
-    RegOpnd *dst      = opndManager->newRegOpnd(OPND_G_REG, DATA_I32);
-    Type    *elemType = ((PtrType *)type1)->getPointedToType();
-    uint32  size      = IpfType::getSize(toDataKind(elemType->tag));
-    uint32  shift     = 0;
-        
-    switch(size) {
-        case 1 : shift = 0;     break; 
-        case 2 : shift = 1;     break; 
-        case 4 : shift = 2;     break; 
-        case 8 : shift = 3;     break; 
-        default: IPF_ASSERT(0); return NULL;
-    }
-
-    addNewInst(INST_SUB, p0, dst, src1, src2);
-    if(shift == 0) return dst;
-    
-    RegOpnd *scaledDst = opndManager->newRegOpnd(OPND_G_REG, DATA_I32);
-    addNewInst(INST_SHR, p0, scaledDst, dst, opndManager->newImm(shift));
-    return scaledDst;
-}
 
 //----------------------------------------------------------------------------//
 // Divide two numeric values



Mime
View raw message