From fae370a044f5817f69937cccfd2d12a16b374266 Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Wed, 5 Jun 2013 08:33:27 -0700 Subject: Don't apply instance-of peephole when vDest == vSrc. Bug: 9284898. Also statistic to show check-cast ellision use. Fix bug where the check-cast ellision was using wrong dex pc. Avoid a use of DecodedInstruction. Other formatting clean-up. Change-Id: Ibf67941a24148b615896d0be6f2f29ce5034e53a --- src/compiler/driver/compiler_driver.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler/driver/compiler_driver.h') diff --git a/src/compiler/driver/compiler_driver.h b/src/compiler/driver/compiler_driver.h index c1e449e6ed..1b5bd0d84c 100644 --- a/src/compiler/driver/compiler_driver.h +++ b/src/compiler/driver/compiler_driver.h @@ -165,6 +165,8 @@ class CompilerDriver { uintptr_t& direct_code, uintptr_t& direct_method, bool update_stats) LOCKS_EXCLUDED(Locks::mutator_lock_); + bool IsSafeCast(const MethodReference& mr, uint32_t dex_pc); + // Record patch information for later fix up. void AddCodePatch(const DexFile* dex_file, uint32_t referrer_method_idx, -- cgit v1.2.3-59-g8ed1b