diff options
| author | 2011-09-23 16:04:19 -0700 | |
|---|---|---|
| committer | 2011-09-23 16:04:19 -0700 | |
| commit | 3311f2763c4103f7c378af417a2863f7e2c224f3 (patch) | |
| tree | b6a9a450ac4996b79df66599f194eeb9445b7179 /src/compiler/codegen/RallocUtil.cc | |
| parent | e51a511ccee3f3c0120807321bcc160fcaa664be (diff) | |
| parent | 042946dda087c5f3d3aed48349baa33127cf2faf (diff) | |
Merge "Fix dalvik vm reg to callee save mappings" into dalvik-dev
Diffstat (limited to 'src/compiler/codegen/RallocUtil.cc')
| -rw-r--r-- | src/compiler/codegen/RallocUtil.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/codegen/RallocUtil.cc b/src/compiler/codegen/RallocUtil.cc index 8b9ae1333e..6198b42ab1 100644 --- a/src/compiler/codegen/RallocUtil.cc +++ b/src/compiler/codegen/RallocUtil.cc @@ -287,6 +287,7 @@ static int allocPreservedDouble(CompilationUnit* cUnit, int sReg) p->inUse = true; assert((res & 1) == 0); cUnit->fpSpillMask |= (1 << (res & FP_REG_MASK)); + cUnit->fpVmapTable.push_back(sReg); cUnit->numSpills++; cUnit->numFPSpills ++; } else { @@ -300,8 +301,10 @@ static int allocPreservedDouble(CompilationUnit* cUnit, int sReg) res = FPRegs[i].reg; FPRegs[i].inUse = true; cUnit->fpSpillMask |= (1 << (res & FP_REG_MASK)); + cUnit->fpVmapTable.push_back(sReg); FPRegs[i+1].inUse = true; cUnit->fpSpillMask |= (1 << ((res+1) & FP_REG_MASK)); + cUnit->fpVmapTable.push_back(sReg); cUnit->numSpills += 2; cUnit->numFPSpills += 2; break; |