summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/RallocUtil.cc
diff options
context:
space:
mode:
author buzbee <buzbee@google.com> 2011-08-24 15:56:30 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2011-08-24 15:56:30 -0700
commit00ba1784be79401d1e096dd9ff44ec14d382993e (patch)
tree262dbd2b97679f7b55866973af77c76f47c67d94 /src/compiler/codegen/RallocUtil.cc
parentb465ab0e103d7760df903c1fddf4fa6b89d5d1f5 (diff)
parent9e0f9b0d3e2cd78092e5c4b66ce1edcd79c951ea (diff)
Merge "Add switch and comparison tests. Fix ralloc bug" into dalvik-dev
Diffstat (limited to 'src/compiler/codegen/RallocUtil.cc')
-rw-r--r--src/compiler/codegen/RallocUtil.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/codegen/RallocUtil.cc b/src/compiler/codegen/RallocUtil.cc
index 30b52804e5..3b222f6f76 100644
--- a/src/compiler/codegen/RallocUtil.cc
+++ b/src/compiler/codegen/RallocUtil.cc
@@ -783,6 +783,12 @@ extern void oatMarkTemp(CompilationUnit* cUnit, int reg)
info->isTemp = true;
}
+extern void oatUnmarkTemp(CompilationUnit* cUnit, int reg)
+{
+ RegisterInfo* info = getRegInfo(cUnit, reg);
+ info->isTemp = false;
+}
+
extern void oatMarkPair(CompilationUnit* cUnit, int lowReg, int highReg)
{
RegisterInfo* infoLo = getRegInfo(cUnit, lowReg);