diff options
Diffstat (limited to 'compiler/compiler.h')
| -rw-r--r-- | compiler/compiler.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/compiler.h b/compiler/compiler.h index 05fa8587fc..c2c15ff9cf 100644 --- a/compiler/compiler.h +++ b/compiler/compiler.h @@ -115,6 +115,7 @@ class Compiler { */ virtual std::vector<uint8_t>* GetCallFrameInformationInitialization(const CompilerDriver& driver) const { + UNUSED(driver); return nullptr; } @@ -122,6 +123,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) { |