diff options
| author | 2015-11-11 18:07:14 +0000 | |
|---|---|---|
| committer | 2015-11-11 18:07:14 +0000 | |
| commit | d15cd44c905e055d2d60b847ba4b221edda5e119 (patch) | |
| tree | b1c3d7d3f2365f3fc1cccba7778c1a351f67b335 /compiler/driver/compiler_driver-inl.h | |
| parent | 54af9bd45a482376b5fe8d4ac291afb5bc950065 (diff) | |
| parent | 9139e008abe30b7beaf4afd6533228a1dd9b202c (diff) | |
Merge "Correct exception behavior for default methods"
Diffstat (limited to 'compiler/driver/compiler_driver-inl.h')
| -rw-r--r-- | compiler/driver/compiler_driver-inl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/driver/compiler_driver-inl.h b/compiler/driver/compiler_driver-inl.h index 14ba81d193..10841e6700 100644 --- a/compiler/driver/compiler_driver-inl.h +++ b/compiler/driver/compiler_driver-inl.h @@ -329,7 +329,7 @@ inline int CompilerDriver::IsFastInvoke( resolved_method->GetMethodIndex() < methods_class->GetVTableLength() && (methods_class->GetVTableEntry( resolved_method->GetMethodIndex(), pointer_size) == resolved_method) && - !resolved_method->IsAbstract(); + resolved_method->IsInvokable(); 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 @@ -374,7 +374,7 @@ inline int CompilerDriver::IsFastInvoke( class_loader, nullptr, kVirtual); } CHECK(called_method != nullptr); - CHECK(!called_method->IsAbstract()); + CHECK(called_method->IsInvokable()); int stats_flags = kFlagMethodResolved; GetCodeAndMethodForDirectCall(/*out*/invoke_type, kDirect, // Sharp type |