summaryrefslogtreecommitdiff
path: root/compiler/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/compiler.h')
-rw-r--r--compiler/compiler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/compiler.h b/compiler/compiler.h
index 05fa8587fc..b92eda7942 100644
--- a/compiler/compiler.h
+++ b/compiler/compiler.h
@@ -122,6 +122,12 @@ class Compiler {
return nullptr;
}
+ // Returns whether the method to compile is such a pathological case that
+ // it's not worth compiling.
+ static bool IsPathologicalCase(const DexFile::CodeItem& code_item,
+ uint32_t method_idx,
+ const DexFile& dex_file);
+
protected:
explicit Compiler(CompilerDriver* driver, uint64_t warning) :
driver_(driver), maximum_compilation_time_before_warning_(warning) {