diff options
| author | 2012-03-02 08:20:26 -0800 | |
|---|---|---|
| committer | 2012-03-02 13:02:52 -0800 | |
| commit | 82488f563e7f72f8c626052893c1792d76ab3faf (patch) | |
| tree | e17e3bc62adf8b57bfeb86a3a879dfb099d3d1d7 /src/compiler/codegen/CodegenFactory.cc | |
| parent | 013b6f296ff7c0cb6aa5aeb6868df05995eeadb7 (diff) | |
Multi-target Codegen cleanup
Trying to get a bit more consistent in the abstraction layer
naming:
genXXX -> high-level codegen, for ex: genIGet()
opXXX -> instruction-level output, for ex: opRegImm()
Also more fleshing out of the Mips codegen support.
Change-Id: Iafdf397cbb5015bfe3aa2c38680d96c7c05f8bc4
Diffstat (limited to 'src/compiler/codegen/CodegenFactory.cc')
| -rw-r--r-- | src/compiler/codegen/CodegenFactory.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/compiler/codegen/CodegenFactory.cc b/src/compiler/codegen/CodegenFactory.cc index 232cbf525e..a42ebc39aa 100644 --- a/src/compiler/codegen/CodegenFactory.cc +++ b/src/compiler/codegen/CodegenFactory.cc @@ -63,7 +63,7 @@ void loadValueDirect(CompilationUnit* cUnit, RegLocation rlSrc, int reg1) { rlSrc = oatUpdateLoc(cUnit, rlSrc); if (rlSrc.location == kLocPhysReg) { - genRegCopy(cUnit, reg1, rlSrc.lowReg); + opRegCopy(cUnit, reg1, rlSrc.lowReg); } else { DCHECK(rlSrc.location == kLocDalvikFrame); loadWordDisp(cUnit, rSP, oatSRegOffset(cUnit, rlSrc.sRegLow), reg1); @@ -92,7 +92,7 @@ void loadValueDirectWide(CompilationUnit* cUnit, RegLocation rlSrc, int regLo, { rlSrc = oatUpdateLocWide(cUnit, rlSrc); if (rlSrc.location == kLocPhysReg) { - genRegCopyWide(cUnit, regLo, regHi, rlSrc.lowReg, rlSrc.highReg); + opRegCopyWide(cUnit, regLo, regHi, rlSrc.lowReg, rlSrc.highReg); } else { DCHECK(rlSrc.location == kLocDalvikFrame); loadBaseDispWide(cUnit, NULL, rSP, @@ -142,7 +142,7 @@ void storeValue(CompilationUnit* cUnit, RegLocation rlDest, RegLocation rlSrc) (rlDest.location == kLocPhysReg)) { // Src is live/promoted or Dest has assigned reg. rlDest = oatEvalLoc(cUnit, rlDest, kAnyReg, false); - genRegCopy(cUnit, rlDest.lowReg, rlSrc.lowReg); + opRegCopy(cUnit, rlDest.lowReg, rlSrc.lowReg); } else { // Just re-assign the registers. Dest gets Src's regs rlDest.lowReg = rlSrc.lowReg; @@ -202,7 +202,7 @@ void storeValueWide(CompilationUnit* cUnit, RegLocation rlDest, (rlDest.location == kLocPhysReg)) { // Src is live or promoted or Dest has assigned reg. rlDest = oatEvalLoc(cUnit, rlDest, kAnyReg, false); - genRegCopyWide(cUnit, rlDest.lowReg, rlDest.highReg, + opRegCopyWide(cUnit, rlDest.lowReg, rlDest.highReg, rlSrc.lowReg, rlSrc.highReg); } else { // Just re-assign the registers. Dest gets Src's regs @@ -249,7 +249,7 @@ void markGCCard(CompilationUnit* cUnit, int valReg, int tgtAddrReg) { int regCardBase = oatAllocTemp(cUnit); int regCardNo = oatAllocTemp(cUnit); - LIR* branchOver = genCmpImmBranch(cUnit, kCondEq, valReg, 0); + LIR* branchOver = opCmpImmBranch(cUnit, kCondEq, valReg, 0, NULL); loadWordDisp(cUnit, rSELF, Thread::CardTableOffset().Int32Value(), regCardBase); opRegRegImm(cUnit, kOpLsr, regCardNo, tgtAddrReg, GC_CARD_SHIFT); @@ -270,7 +270,7 @@ void markGCCard(CompilationUnit* cUnit, int valReg, int tgtAddrReg) void loadCurrMethodDirect(CompilationUnit *cUnit, int rTgt) { #if defined(METHOD_IN_REG) - genRegCopy(cUnit, rTgt, rMETHOD); + opRegCopy(cUnit, rTgt, rMETHOD); #else loadWordDisp(cUnit, rSP, 0, rTgt); #endif |