summaryrefslogtreecommitdiff
path: root/compiler/compiler.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2014-10-30 10:58:41 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2014-10-31 12:21:53 +0000
commitb5f62b3dc5ac2731ba8ad53cdf3d9bdb14fbf86b (patch)
treefb2d33e43de1476af33112f263fd3c3a775917d0 /compiler/compiler.h
parent29ce77f654412dbb5fb3d5949da4053952917101 (diff)
Support for CONST_STRING in optimizing compiler.
Change-Id: Iab8517bdadd1d15ffbe570010f093660be7c51aa
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) {