From b3bd5f07884f5a1f2b84224363b1372d7c28d447 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 8 Mar 2012 21:05:27 -0800 Subject: Refactor the compilers out of libart. This builds three separate compilers and dynamically links with the right one at runtime. Change-Id: I59d22b9884f41de733c09f97e29ee290236d5f4b --- src/compiler/codegen/RallocUtil.cc | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/compiler/codegen/RallocUtil.cc') 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 -- cgit v1.2.3-59-g8ed1b