diff options
Diffstat (limited to 'src/compiler/codegen/arm')
| -rw-r--r-- | src/compiler/codegen/arm/ArchFactory.cc | 14 | ||||
| -rw-r--r-- | src/compiler/codegen/arm/ArmRallocUtil.cc | 4 |
2 files changed, 2 insertions, 16 deletions
diff --git a/src/compiler/codegen/arm/ArchFactory.cc b/src/compiler/codegen/arm/ArchFactory.cc index da5de521f3..c24b85657c 100644 --- a/src/compiler/codegen/arm/ArchFactory.cc +++ b/src/compiler/codegen/arm/ArchFactory.cc @@ -107,20 +107,6 @@ void genEntrySequence(CompilationUnit* cUnit, BasicBlock* bb) cUnit->frameSize - (spillCount * 4)); } - /* - * Dummy up a RegLocation for the incoming Method* - * It will attempt to keep r0 live (or copy it to home location - * if promoted). - */ - RegLocation rlSrc = cUnit->regLocation[cUnit->methodSReg]; - RegLocation rlMethod = cUnit->regLocation[cUnit->methodSReg]; - rlSrc.location = kLocPhysReg; - rlSrc.lowReg = r0; - rlSrc.home = false; - oatMarkLive(cUnit, rlSrc.lowReg, rlSrc.sRegLow); - storeValue(cUnit, rlMethod, rlSrc); - - /* Flush the rest of the ins */ flushIns(cUnit); if (cUnit->genDebugger) { diff --git a/src/compiler/codegen/arm/ArmRallocUtil.cc b/src/compiler/codegen/arm/ArmRallocUtil.cc index e7627f2367..89bff5ee9b 100644 --- a/src/compiler/codegen/arm/ArmRallocUtil.cc +++ b/src/compiler/codegen/arm/ArmRallocUtil.cc @@ -45,7 +45,7 @@ void oatAdjustSpillMask(CompilationUnit* cUnit) * include any holes in the mask. Associate holes with * Dalvik register INVALID_VREG (0xFFFFU). */ -void oatMarkPreservedSingle(CompilationUnit* cUnit, int sReg, int reg) +void oatMarkPreservedSingle(CompilationUnit* cUnit, int vReg, int reg) { DCHECK_GE(reg, FP_REG_MASK + FP_CALLEE_SAVE_BASE); reg = (reg & FP_REG_MASK) - FP_CALLEE_SAVE_BASE; @@ -55,7 +55,7 @@ void oatMarkPreservedSingle(CompilationUnit* cUnit, int sReg, int reg) cUnit->fpVmapTable.push_back(INVALID_VREG); } // Add the current mapping - cUnit->fpVmapTable[reg] = sReg; + cUnit->fpVmapTable[reg] = vReg; // Size of fpVmapTable is high-water mark, use to set mask cUnit->numFPSpills = cUnit->fpVmapTable.size(); cUnit->fpSpillMask = ((1 << cUnit->numFPSpills) - 1) << FP_CALLEE_SAVE_BASE; |