diff options
| author | 2015-04-01 20:27:28 +0100 | |
|---|---|---|
| committer | 2015-04-10 18:14:42 +0100 | |
| commit | c751d37e692d89b360f3c09421401f581b5c6d06 (patch) | |
| tree | e8291a99d7b407ac2dbf0680df0876384821812c /compiler/driver/compiler_driver.h | |
| parent | 8e5fc53bd2f9ab5a46547959a176eba176ee115f (diff) | |
Fallback to quick in case of soft verification errors
Add a regression test: using uninitialized values triggers a soft
verification error and optimizing should not crash.
Thanks to Stephen Kyle (stephenckyle@googlemail.com) for the bug report.
Bug: 19988704
Change-Id: I2493f737efd3fad72f6b41fb60eff1d3731613fb
Diffstat (limited to 'compiler/driver/compiler_driver.h')
| -rw-r--r-- | compiler/driver/compiler_driver.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/driver/compiler_driver.h b/compiler/driver/compiler_driver.h index a6ed5590dc..b3ca25bed2 100644 --- a/compiler/driver/compiler_driver.h +++ b/compiler/driver/compiler_driver.h @@ -425,6 +425,10 @@ class CompilerDriver { void RecordClassStatus(ClassReference ref, mirror::Class::Status status) LOCKS_EXCLUDED(compiled_classes_lock_); + // Checks if the specified method has been verified without failures. Returns + // false if the method is not in the verification results (GetVerificationResults). + bool IsMethodVerifiedWithoutFailures(uint32_t method_idx, const DexFile& dex_file) const; + SwapVector<uint8_t>* DeduplicateCode(const ArrayRef<const uint8_t>& code); SwapSrcMap* DeduplicateSrcMappingTable(const ArrayRef<SrcMapElem>& src_map); SwapVector<uint8_t>* DeduplicateMappingTable(const ArrayRef<const uint8_t>& code); |