diff options
| author | 2012-02-02 16:46:25 -0800 | |
|---|---|---|
| committer | 2012-02-02 16:46:25 -0800 | |
| commit | 1ff1b98327b8056e20cd959963d759697a2b2f11 (patch) | |
| tree | b5f93a7ca614ab8f34551cf179f9bdb41bd4adf4 /src/compiler/Compiler.h | |
| parent | 3c92a1833dcf1bda1b6180e053ffa4334866d1f9 (diff) | |
| parent | 5abfa3ea35781464df8fae60aaf03f48a295e965 (diff) | |
Merge "Compiler tuning" into dalvik-dev
Diffstat (limited to 'src/compiler/Compiler.h')
| -rw-r--r-- | src/compiler/Compiler.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/compiler/Compiler.h b/src/compiler/Compiler.h index 05e05b676b..909ac9651e 100644 --- a/src/compiler/Compiler.h +++ b/src/compiler/Compiler.h @@ -41,6 +41,62 @@ enum optControlVector { kSkipLargeMethodOptimization, }; +/* Type of allocation for memory tuning */ +enum oatAllocKind { + kAllocMisc, + kAllocBB, + kAllocLIR, + kAllocMIR, + kAllocDFInfo, + kAllocGrowableList, + kAllocGrowableBitMap, + kAllocDalvikToSSAMap, + kAllocDebugInfo, + kAllocSuccessor, + kAllocRegAlloc, + kAllocData, + kAllocPredecessors, + kNumAllocKinds +}; + +/* Type of growable list for memory tuning */ +enum oatListKind { + kListMisc = 0, + kListBlockList, + kListSSAtoDalvikMap, + kListDfsOrder, + kListDfsPostOrder, + kListDomPostOrderTraversal, + kListThrowLaunchPads, + kListSuspendLaunchPads, + kListSwitchTables, + kListFillArrayData, + kListSuccessorBlocks, + kListPredecessors, + kNumListKinds +}; + +/* Type of growable bitmap for memory tuning */ +enum oatBitMapKind { + kBitMapMisc = 0, + kBitMapUse, + kBitMapDef, + kBitMapLiveIn, + kBitMapBMatrix, + kBitMapDominators, + kBitMapIDominated, + kBitMapDomFrontier, + kBitMapPhi, + kBitMapTmpBlocks, + kBitMapInputBlocks, + kBitMapRegisterV, + kBitMapTempSSARegisterV, + kBitMapNullCheck, + kBitMapTmpBlockV, + kBitMapPredecessors, + kNumBitMapKinds +}; + extern uint32_t compilerOptimizerDisableFlags; /* Force code generation paths for testing */ @@ -56,6 +112,7 @@ enum debugControlVector { kDebugSlowestStringPath, kDebugExerciseResolveMethod, kDebugVerifyDataflow, + kDebugShowMemoryUsage, }; extern uint32_t compilerDebugFlags; |