diff options
author | 2014-10-30 10:58:41 +0000 | |
---|---|---|
committer | 2014-10-31 12:21:53 +0000 | |
commit | b5f62b3dc5ac2731ba8ad53cdf3d9bdb14fbf86b (patch) | |
tree | fb2d33e43de1476af33112f263fd3c3a775917d0 /compiler/compiler.h | |
parent | 29ce77f654412dbb5fb3d5949da4053952917101 (diff) |
Support for CONST_STRING in optimizing compiler.
Change-Id: Iab8517bdadd1d15ffbe570010f093660be7c51aa
Diffstat (limited to 'compiler/compiler.h')
-rw-r--r-- | compiler/compiler.h | 6 |
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) { |