diff options
| author | 2012-03-18 13:24:07 -0700 | |
|---|---|---|
| committer | 2012-03-18 18:17:16 -0700 | |
| commit | 9c044ce5f76e9bfa17c4c1979e9f8c99ae100695 (patch) | |
| tree | 6eefdf59583cd75f1e77814b85bbf1222addd395 /src/compiler/codegen/arm/ArmRallocUtil.cc | |
| parent | 3fa13791c51985d9956d01bc465de6d36c3390d3 (diff) | |
Support for promoting Method* and compiler temps
This CL completes the support for allowing compiler-generated
data to be treated as a Dalvik register and become subject to
the normal register promotion and live temp tracking machinery.
Also:
o Removes some vestigal and useless Method* loads from
range argument setup.
o Changes the Method* pseudo vReg number from -1 to -2 to
avoid a conflict with the 0xffff marker in the register map.
o Removes some experimental code for CSE at the basic block
level.
Change-Id: I112a8bbe20f95a8d789f63908c84e5fa167c74ac
Diffstat (limited to 'src/compiler/codegen/arm/ArmRallocUtil.cc')
| -rw-r--r-- | src/compiler/codegen/arm/ArmRallocUtil.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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; |