summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/CodegenFactory.cc
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2012-03-18 00:06:11 -0700
committer Ian Rogers <irogers@google.com> 2012-03-18 00:06:11 -0700
commitab2b55dfcf630fdf8d03b5f506386f114fa2874c (patch)
tree288b6e463a5eb13d78bb0a1a511233ddf1259124 /src/compiler/codegen/CodegenFactory.cc
parentb2793375d42b5d90d9a0111581c4314abe11ca4c (diff)
Refactor callRuntimeHelper
Change-Id: I87c5f592a931c98c4b5b693b72216f4e71990162
Diffstat (limited to 'src/compiler/codegen/CodegenFactory.cc')
-rw-r--r--src/compiler/codegen/CodegenFactory.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/compiler/codegen/CodegenFactory.cc b/src/compiler/codegen/CodegenFactory.cc
index eebaaf3d86..5f525a71c4 100644
--- a/src/compiler/codegen/CodegenFactory.cc
+++ b/src/compiler/codegen/CodegenFactory.cc
@@ -59,15 +59,15 @@ LIR* storeWordDisp(CompilationUnit* cUnit, int rBase, int displacement,
* 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 @@ void loadValueDirect(CompilationUnit* cUnit, RegLocation rlSrc, int reg1)
* 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);
}
/*