aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/RallocUtil.c
diff options
context:
space:
mode:
authorBill Buzbee <buzbee@google.com>2010-01-28 18:36:55 -0800
committerBill Buzbee <buzbee@google.com>2010-01-28 18:36:55 -0800
commit2527f5b316478d6cde6840add9fdfd5cbb87b57d (patch)
treeb2a778a4bf8d33a09cc74a5fbf58e597e50d43f6 /vm/compiler/codegen/arm/RallocUtil.c
parent5e66e98d9f12ac575093a0bb37a2ae90303bd8d9 (diff)
Jit: Fix register usage bug (driveabout failure)
Some of the execute-inline templates were using r4, which wasn't in the save set for templates. The failing traces expected it to be live across the template call.
Diffstat (limited to 'vm/compiler/codegen/arm/RallocUtil.c')
-rw-r--r--vm/compiler/codegen/arm/RallocUtil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm/compiler/codegen/arm/RallocUtil.c b/vm/compiler/codegen/arm/RallocUtil.c
index ff7700260..5c128460c 100644
--- a/vm/compiler/codegen/arm/RallocUtil.c
+++ b/vm/compiler/codegen/arm/RallocUtil.c
@@ -466,6 +466,7 @@ extern void clobberHandlerRegs(CompilationUnit *cUnit)
{
//TUNING: reduce the set of regs used by handlers. Only a few need lots.
clobberCallRegs(cUnit);
+ clobberReg(cUnit, r4PC);
clobberReg(cUnit, r9);
clobberReg(cUnit, r10);
}