From 9c044ce5f76e9bfa17c4c1979e9f8c99ae100695 Mon Sep 17 00:00:00 2001 From: buzbee Date: Sun, 18 Mar 2012 13:24:07 -0700 Subject: 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 --- src/compiler/codegen/CodegenFactory.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/compiler/codegen/CodegenFactory.cc') diff --git a/src/compiler/codegen/CodegenFactory.cc b/src/compiler/codegen/CodegenFactory.cc index 5f525a71c4..e1df1a5b45 100644 --- a/src/compiler/codegen/CodegenFactory.cc +++ b/src/compiler/codegen/CodegenFactory.cc @@ -302,5 +302,10 @@ RegLocation loadCurrMethod(CompilationUnit *cUnit) return loadValue(cUnit, cUnit->regLocation[cUnit->methodSReg], kCoreReg); } +bool methodStarInReg(CompilationUnit* cUnit) +{ + return (cUnit->regLocation[cUnit->methodSReg].location == kLocPhysReg); +} + } // namespace art -- cgit v1.2.3-59-g8ed1b