summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/RallocUtil.cc
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2012-03-08 21:05:27 -0800
committer Elliott Hughes <enh@google.com> 2012-03-09 15:37:46 -0800
commitb3bd5f07884f5a1f2b84224363b1372d7c28d447 (patch)
tree6e2997ab64b4a4f32d7ef539a4649adc736ea553 /src/compiler/codegen/RallocUtil.cc
parentddbd01ac1660d57416879d5a576482f1048dde64 (diff)
Refactor the compilers out of libart.
This builds three separate compilers and dynamically links with the right one at runtime. Change-Id: I59d22b9884f41de733c09f97e29ee290236d5f4b
Diffstat (limited to 'src/compiler/codegen/RallocUtil.cc')
-rw-r--r--src/compiler/codegen/RallocUtil.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/compiler/codegen/RallocUtil.cc b/src/compiler/codegen/RallocUtil.cc
index 232b304304..cfda72196c 100644
--- a/src/compiler/codegen/RallocUtil.cc
+++ b/src/compiler/codegen/RallocUtil.cc
@@ -1227,23 +1227,4 @@ extern int oatSRegOffset(CompilationUnit* cUnit, int sReg)
return oatVRegOffset(cUnit, oatS2VReg(cUnit, sReg));
}
-
-/* Return sp-relative offset in bytes using Method* */
-extern int oatVRegOffset(const DexFile::CodeItem* code_item,
- uint32_t core_spills, uint32_t fp_spills,
- size_t frame_size, int reg)
-{
- int numIns = code_item->ins_size_;
- int numRegs = code_item->registers_size_ - numIns;
- int numOuts = code_item->outs_size_;
- int numSpills = __builtin_popcount(core_spills) +
- __builtin_popcount(fp_spills);
- int numPadding = (STACK_ALIGN_WORDS -
- (numSpills + numRegs + numOuts + 2)) & (STACK_ALIGN_WORDS-1);
- int regsOffset = (numOuts + numPadding + 1) * 4;
- int insOffset = frame_size + 4;
- return (reg < numRegs) ? regsOffset + (reg << 2) :
- insOffset + ((reg - numRegs) << 2);
-}
-
} // namespace art