Disable virtual call sharpening.
A regression in voice search was seen. Disable for now. Add a few
assertions to aid future diagnostics.
Change-Id: I635b1126b3e45293489b6b7ad54d838773ae7030
diff --git a/src/compiler.cc b/src/compiler.cc
index 2ba89d4..332ea25 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -597,7 +597,9 @@
referrer_class->CanAccessMember(methods_class,
resolved_method->GetAccessFlags())) {
vtable_idx = resolved_method->GetMethodIndex();
- if (type == kVirtual && (resolved_method->IsFinal() || methods_class->IsFinal())) {
+ const bool kEnableSharpening = false;
+ if (kEnableSharpening && type == kVirtual &&
+ (resolved_method->IsFinal() || methods_class->IsFinal())) {
stats_->ResolvedMethod(kVirtual);
// Sharpen a virtual call into a direct call. The method_idx is into referrer's
// dex cache, check that this resolved method is where we expect it.