Refactor callRuntimeHelper
Change-Id: I87c5f592a931c98c4b5b693b72216f4e71990162
diff --git a/src/compiler/codegen/CodegenFactory.cc b/src/compiler/codegen/CodegenFactory.cc
index eebaaf3..5f525a7 100644
--- a/src/compiler/codegen/CodegenFactory.cc
+++ b/src/compiler/codegen/CodegenFactory.cc
@@ -59,15 +59,15 @@
* using this routine, as it doesn't perform any bookkeeping regarding
* register liveness. That is the responsibility of the caller.
*/
-void loadValueDirect(CompilationUnit* cUnit, RegLocation rlSrc, int reg1)
+void loadValueDirect(CompilationUnit* cUnit, RegLocation rlSrc, int rDest)
{
rlSrc = oatUpdateLoc(cUnit, rlSrc);
if (rlSrc.location == kLocPhysReg) {
- opRegCopy(cUnit, reg1, rlSrc.lowReg);
+ opRegCopy(cUnit, rDest, rlSrc.lowReg);
} else {
DCHECK((rlSrc.location == kLocDalvikFrame) ||
(rlSrc.location == kLocCompilerTemp));
- loadWordDisp(cUnit, rSP, oatSRegOffset(cUnit, rlSrc.sRegLow), reg1);
+ loadWordDisp(cUnit, rSP, oatSRegOffset(cUnit, rlSrc.sRegLow), rDest);
}
}
@@ -76,11 +76,11 @@
* register. Should be used when loading to a fixed register (for example,
* loading arguments to an out of line call.
*/
-void loadValueDirectFixed(CompilationUnit* cUnit, RegLocation rlSrc, int reg1)
+void loadValueDirectFixed(CompilationUnit* cUnit, RegLocation rlSrc, int rDest)
{
- oatClobber(cUnit, reg1);
- oatMarkInUse(cUnit, reg1);
- loadValueDirect(cUnit, rlSrc, reg1);
+ oatClobber(cUnit, rDest);
+ oatMarkInUse(cUnit, rDest);
+ loadValueDirect(cUnit, rlSrc, rDest);
}
/*