summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/RallocUtil.cc
diff options
context:
space:
mode:
author buzbee <buzbee@google.com> 2011-09-08 17:57:05 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2011-09-08 17:57:05 -0700
commit75bbd552bfe56e782473f669b7228e86189e243c (patch)
treedd05387120749a2165442c538b3f2c0e28209a83 /src/compiler/codegen/RallocUtil.cc
parent8ba4fa861d75aaa765d00336b877c41291bb36f2 (diff)
parent0d966cff87464544a264efdbfba6c379474d5928 (diff)
Merge "Add suspend check & stub" into dalvik-dev
Diffstat (limited to 'src/compiler/codegen/RallocUtil.cc')
-rw-r--r--src/compiler/codegen/RallocUtil.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/compiler/codegen/RallocUtil.cc b/src/compiler/codegen/RallocUtil.cc
index 5951ad4fdc..1fe680f2d8 100644
--- a/src/compiler/codegen/RallocUtil.cc
+++ b/src/compiler/codegen/RallocUtil.cc
@@ -712,6 +712,16 @@ extern void oatLockCallTemps(CompilationUnit* cUnit)
oatLockTemp(cUnit, r3);
}
+/* To be used when explicitly managing register use */
+extern void oatFreeCallTemps(CompilationUnit* cUnit)
+{
+ //TODO: Arm specific - move to target dependent code
+ oatFreeTemp(cUnit, r0);
+ oatFreeTemp(cUnit, r1);
+ oatFreeTemp(cUnit, r2);
+ oatFreeTemp(cUnit, r3);
+}
+
// Make sure nothing is live and dirty
static void flushAllRegsBody(CompilationUnit* cUnit, RegisterInfo* info,
int numRegs)