diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-10-31 14:24:05 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-10-31 14:24:06 +0000 |
commit | a9014f977ae90373f5bad4cf812c2bda810b10f8 (patch) | |
tree | 40f4bc76cb5e7cf9c95fced70b1ad5c2c2d39f4e /compiler/compiler.h | |
parent | 8b557af85871e5086589afd2b3a17089d0f67df8 (diff) | |
parent | b5f62b3dc5ac2731ba8ad53cdf3d9bdb14fbf86b (diff) |
Merge "Support for CONST_STRING in optimizing compiler."
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) { |