diff options
author | Dan Bornstein <danfuzz@android.com> | 2010-11-11 10:55:45 -0800 |
---|---|---|
committer | Dan Bornstein <danfuzz@android.com> | 2010-11-11 10:55:45 -0800 |
commit | e192bb82fc3c0f5d0fe2f42e7479eb48fc3ae855 (patch) | |
tree | 6a2d7422772bcd7d7ffd97c3e4d945c18aa560bb /vm/compiler/codegen/arm | |
parent | 44a38f4a6a1cde0490e78b7de3b27906c6c81078 (diff) | |
download | android_dalvik-e192bb82fc3c0f5d0fe2f42e7479eb48fc3ae855.tar.gz android_dalvik-e192bb82fc3c0f5d0fe2f42e7479eb48fc3ae855.tar.bz2 android_dalvik-e192bb82fc3c0f5d0fe2f42e7479eb48fc3ae855.zip |
Fix Thumb2 codegen.
My local build wasn't doing Thumb2. Unsurprising in retrospect.
Change-Id: I38ab4dc80e1115cf459f6d890c7d0eb2705fa7c9
Diffstat (limited to 'vm/compiler/codegen/arm')
-rw-r--r-- | vm/compiler/codegen/arm/Thumb2/Gen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vm/compiler/codegen/arm/Thumb2/Gen.c b/vm/compiler/codegen/arm/Thumb2/Gen.c index ef1e8a9f1..051d16d65 100644 --- a/vm/compiler/codegen/arm/Thumb2/Gen.c +++ b/vm/compiler/codegen/arm/Thumb2/Gen.c @@ -225,7 +225,8 @@ static void genMonitorEnter(CompilationUnit *cUnit, MIR *mir) /* Get dPC of next insn */ loadConstant(cUnit, r4PC, (int)(cUnit->method->insns + mir->offset + - dexGetInstrWidthAbs(gDvm.instrWidth, OP_MONITOR_ENTER))); + dexGetInstrWidthAbs(gDvm.instrInfo.widths, + OP_MONITOR_ENTER))); // Export PC (part 2) newLIR3(cUnit, kThumb2StrRRI8Predec, r3, rFP, sizeof(StackSaveArea) - @@ -289,7 +290,7 @@ static void genMonitorExit(CompilationUnit *cUnit, MIR *mir) ArmLIR *branchOver = genCmpImmBranch(cUnit, kArmCondNe, r0, 0); loadConstant(cUnit, r0, (int) (cUnit->method->insns + mir->offset + - dexGetInstrWidthAbs(gDvm.instrWidth, OP_MONITOR_EXIT))); + dexGetInstrWidthAbs(gDvm.instrInfo.widths, OP_MONITOR_EXIT))); genDispatchToHandler(cUnit, TEMPLATE_THROW_EXCEPTION_COMMON); // Resume here |