summaryrefslogtreecommitdiff
path: root/compiler/dex/frontend.h
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2015-01-22 20:39:27 -0800
committer Andreas Gampe <agampe@google.com> 2015-01-26 14:30:40 -0800
commit0b9203e7996ee1856f620f95d95d8a273c43a3df (patch)
treea9715986cfdbb21e4d64f72b56fac255cc8b9309 /compiler/dex/frontend.h
parent4dfe58d8f2d398963f31831a57fbd12e282e1196 (diff)
ART: Some Quick cleanup
Make several fields const in CompilationUnit. May benefit some Mir2Lir code that repeats tests, and in general immutability is good. Remove compiler_internals.h and refactor some other headers to reduce overly broad imports (and thus forced recompiles on changes). Change-Id: I898405907c68923581373b5981d8a85d2e5d185a
Diffstat (limited to 'compiler/dex/frontend.h')
-rw-r--r--compiler/dex/frontend.h50
1 files changed, 0 insertions, 50 deletions
diff --git a/compiler/dex/frontend.h b/compiler/dex/frontend.h
index 4266535053..2c9e1f8526 100644
--- a/compiler/dex/frontend.h
+++ b/compiler/dex/frontend.h
@@ -26,56 +26,6 @@ class CompiledMethod;
class Compiler;
class CompilerDriver;
-/*
- * Assembly is an iterative process, and usually terminates within
- * two or three passes. This should be high enough to handle bizarre
- * cases, but detect an infinite loop bug.
- */
-#define MAX_ASSEMBLER_RETRIES 50
-
-// Suppress optimization if corresponding bit set.
-enum opt_control_vector {
- kLoadStoreElimination = 0,
- kLoadHoisting,
- kSuppressLoads,
- kNullCheckElimination,
- kClassInitCheckElimination,
- kGlobalValueNumbering,
- kLocalValueNumbering,
- kPromoteRegs,
- kTrackLiveTemps,
- kSafeOptimizations,
- kBBOpt,
- kSuspendCheckElimination,
- kMatch,
- kPromoteCompilerTemps,
- kBranchFusing,
- kSuppressExceptionEdges,
- kSuppressMethodInlining,
-};
-
-// Force code generation paths for testing.
-enum debugControlVector {
- kDebugVerbose,
- kDebugDumpCFG,
- kDebugSlowFieldPath,
- kDebugSlowInvokePath,
- kDebugSlowStringPath,
- kDebugSlowTypePath,
- kDebugSlowestFieldPath,
- kDebugSlowestStringPath,
- kDebugExerciseResolveMethod,
- kDebugVerifyDataflow,
- kDebugShowMemoryUsage,
- kDebugShowNops,
- kDebugCountOpcodes,
- kDebugDumpCheckStats,
- kDebugShowSummaryMemoryUsage,
- kDebugShowFilterStats,
- kDebugTimings,
- kDebugCodegenDump
-};
-
CompiledMethod* CompileOneMethod(CompilerDriver* driver,
const Compiler* compiler,
const DexFile::CodeItem* code_item,