diff options
author | Ben Cheng <bccheng@android.com> | 2011-03-22 14:09:09 -0700 |
---|---|---|
committer | Ben Cheng <bccheng@android.com> | 2011-03-31 13:19:19 -0700 |
commit | 32115a971ea00ab2421fab4e4a3afa6c50c82173 (patch) | |
tree | 46a022082ba16b413c4978d2d1014b0623a82492 /vm/compiler/codegen/arm/ArchUtility.c | |
parent | 9220113edce56372d613f7aba006513ae85a99bc (diff) | |
download | android_dalvik-32115a971ea00ab2421fab4e4a3afa6c50c82173.tar.gz android_dalvik-32115a971ea00ab2421fab4e4a3afa6c50c82173.tar.bz2 android_dalvik-32115a971ea00ab2421fab4e4a3afa6c50c82173.zip |
Generate code for loops formed with the new builder
Adapt the existing counted loop analysis and range/null check
elimination code to work with the new loop building heuristics.
Cleaned up the old ad-hoc loop builder.
Suspend polling is enabled by default for loops. The backward chaining
cell will be used in self-verification and profiling mode.
If the loop includes accesses to resolved fields/classes, abort code
generation for now and revert to the basic acyclic trace. Added
tests/090-loop-formation to make sure the JIT won't choke on such
instructions.
Change-Id: Idbc57df0a745be3b692f68c1acb6d4861c537f75
Diffstat (limited to 'vm/compiler/codegen/arm/ArchUtility.c')
-rw-r--r-- | vm/compiler/codegen/arm/ArchUtility.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vm/compiler/codegen/arm/ArchUtility.c b/vm/compiler/codegen/arm/ArchUtility.c index fb28e2605..edcbf86a0 100644 --- a/vm/compiler/codegen/arm/ArchUtility.c +++ b/vm/compiler/codegen/arm/ArchUtility.c @@ -316,20 +316,25 @@ void dvmDumpLIRInsn(LIR *arg, unsigned char *baseAddr) DUMP_SSA_REP(LOGD("-------- %s\n", (char *) dest)); break; case kArmPseudoChainingCellBackwardBranch: + LOGD("L%p:\n", lir); LOGD("-------- chaining cell (backward branch): 0x%04x\n", dest); break; case kArmPseudoChainingCellNormal: + LOGD("L%p:\n", lir); LOGD("-------- chaining cell (normal): 0x%04x\n", dest); break; case kArmPseudoChainingCellHot: + LOGD("L%p:\n", lir); LOGD("-------- chaining cell (hot): 0x%04x\n", dest); break; case kArmPseudoChainingCellInvokePredicted: + LOGD("L%p:\n", lir); LOGD("-------- chaining cell (predicted): %s%s\n", dest ? ((Method *) dest)->clazz->descriptor : "", dest ? ((Method *) dest)->name : "N/A"); break; case kArmPseudoChainingCellInvokeSingleton: + LOGD("L%p:\n", lir); LOGD("-------- chaining cell (invoke singleton): %s%s/%p\n", ((Method *)dest)->clazz->descriptor, ((Method *)dest)->name, |