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/Compiler.h | |
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/Compiler.h')
-rw-r--r-- | vm/compiler/Compiler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vm/compiler/Compiler.h b/vm/compiler/Compiler.h index 12add7539..35d34b3e2 100644 --- a/vm/compiler/Compiler.h +++ b/vm/compiler/Compiler.h @@ -209,6 +209,7 @@ void dvmCompilerInlineMIR(struct CompilationUnit *cUnit, void dvmInitializeSSAConversion(struct CompilationUnit *cUnit); int dvmConvertSSARegToDalvik(const struct CompilationUnit *cUnit, int ssaReg); bool dvmCompilerLoopOpt(struct CompilationUnit *cUnit); +void dvmCompilerInsertBackwardChaining(struct CompilationUnit *cUnit); void dvmCompilerNonLoopAnalysis(struct CompilationUnit *cUnit); bool dvmCompilerFindLocalLiveIn(struct CompilationUnit *cUnit, struct BasicBlock *bb); @@ -239,4 +240,5 @@ JitTraceDescription *dvmCopyTraceDescriptor(const u2 *pc, void *dvmCompilerGetInterpretTemplate(); JitInstructionSetType dvmCompilerGetInterpretTemplateSet(); u8 dvmGetRegResourceMask(int reg); +void dvmDumpCFG(struct CompilationUnit *cUnit, const char *dirPrefix); #endif /* _DALVIK_VM_COMPILER */ |