From 0d966cff87464544a264efdbfba6c379474d5928 Mon Sep 17 00:00:00 2001 From: buzbee Date: Thu, 8 Sep 2011 17:34:58 -0700 Subject: Add suspend check & stub Change-Id: I017653026ca95166cbc4b6b94b5da1fef2597804 --- src/compiler/codegen/RallocUtil.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/compiler/codegen/RallocUtil.cc') 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) -- cgit v1.2.3-59-g8ed1b