aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/CodegenDriver.c
diff options
context:
space:
mode:
authorbuzbee <buzbee@google.com>2010-11-03 10:44:15 -0700
committerbuzbee <buzbee@google.com>2010-11-30 11:21:56 -0800
commitebcd86461f9d61a1a5f25a8f6dde5a9ded5ba275 (patch)
tree325e242d64c8112b22ebb70f8906bd011f1c4e19 /vm/compiler/codegen/arm/CodegenDriver.c
parente9503ef8c460f4818062ecc80a9e0b4f8c6745b8 (diff)
Fix for Issue 3161543 - Remove stray line of code in JIT
During Change 22370 "Thumb/Thumb2 instruction selection rework" line 1689 of Codegen.c was inadvertently duplicated and deposited in the unrelated function genPuntToInterp() at line 1732. genPuntToInterp() is rarely used and half of the time (if the roll-back Dalvik PC was word-aligned) the error would have been benign. However, if the Dalvik PC is not word-aligned, the result would be a seg fault. The fix is to remove the line of code. Change-Id: Ib2ffb80059a639923c342a36797eb6c4995c5218
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.c')
-rw-r--r--vm/compiler/codegen/arm/CodegenDriver.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/vm/compiler/codegen/arm/CodegenDriver.c b/vm/compiler/codegen/arm/CodegenDriver.c
index 657533bf0..011679b60 100644
--- a/vm/compiler/codegen/arm/CodegenDriver.c
+++ b/vm/compiler/codegen/arm/CodegenDriver.c
@@ -1219,7 +1219,6 @@ static void genPuntToInterp(CompilationUnit *cUnit, unsigned int offset)
/* r0 = dalvik pc */
dvmCompilerFlushAllRegs(cUnit);
loadConstant(cUnit, r0, (int) (cUnit->method->insns + offset));
- loadWordDisp(cUnit, r0, offsetof(Object, clazz), r3);
loadWordDisp(cUnit, rGLUE, offsetof(InterpState,
jitToInterpEntries.dvmJitToInterpPunt), r1);
opReg(cUnit, kOpBlx, r1);