summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_driver-inl.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2014-11-18 18:14:07 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-11-18 18:14:08 +0000
commite0491682d101c69bf88c3c24a965312129cbfa38 (patch)
tree8e08045dd689c092789adcd003ab072d2ae0ed8d /compiler/driver/compiler_driver-inl.h
parentd3b0c55772d3b2111c4372525a69e3b01e98b1fd (diff)
parent920506d4509fef2486a099c005ec134a5d22ec11 (diff)
Merge "Do not try to sharpen super calls to abstract methods."
Diffstat (limited to 'compiler/driver/compiler_driver-inl.h')
-rw-r--r--compiler/driver/compiler_driver-inl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/driver/compiler_driver-inl.h b/compiler/driver/compiler_driver-inl.h
index 1805d59961..ebf7874dcf 100644
--- a/compiler/driver/compiler_driver-inl.h
+++ b/compiler/driver/compiler_driver-inl.h
@@ -240,7 +240,8 @@ inline int CompilerDriver::IsFastInvoke(
bool can_sharpen_super_based_on_type = (*invoke_type == kSuper) &&
(referrer_class != methods_class) && referrer_class->IsSubClass(methods_class) &&
resolved_method->GetMethodIndex() < methods_class->GetVTableLength() &&
- (methods_class->GetVTableEntry(resolved_method->GetMethodIndex()) == resolved_method);
+ (methods_class->GetVTableEntry(resolved_method->GetMethodIndex()) == resolved_method) &&
+ !resolved_method->IsAbstract();
if (can_sharpen_virtual_based_on_type || can_sharpen_super_based_on_type) {
// Sharpen a virtual call into a direct call. The method_idx is into referrer's