summaryrefslogtreecommitdiffstats
path: root/src/compiler/driver/compiler_driver.h
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2013-06-05 08:33:27 -0700
committerIan Rogers <irogers@google.com>2013-06-05 08:33:27 -0700
commitfae370a044f5817f69937cccfd2d12a16b374266 (patch)
tree60af2a03b19e9bcca149e0519504da134d17f9ed /src/compiler/driver/compiler_driver.h
parent1b1e8da7287e199533bf63d72f16fdff99fe7f8e (diff)
downloadandroid_art-fae370a044f5817f69937cccfd2d12a16b374266.tar.gz
android_art-fae370a044f5817f69937cccfd2d12a16b374266.tar.bz2
android_art-fae370a044f5817f69937cccfd2d12a16b374266.zip
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
Diffstat (limited to 'src/compiler/driver/compiler_driver.h')
-rw-r--r--src/compiler/driver/compiler_driver.h2
1 files changed, 2 insertions, 0 deletions
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,