From b19fa800aab1c2731b12ff24696feca13901db3f Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Thu, 20 Jun 2013 11:17:03 -0700 Subject: Don't always slow-path array casts/instance-of. Recent changes to IsAbstract for arrays pushed us in to always generating slow-paths. Change-Id: I52fb50953949f337243961a308eabf0d684eacf3 --- src/compiler/driver/compiler_driver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/driver/compiler_driver.cc') diff --git a/src/compiler/driver/compiler_driver.cc b/src/compiler/driver/compiler_driver.cc index 186cf0d4d3..b04e5b1f3d 100644 --- a/src/compiler/driver/compiler_driver.cc +++ b/src/compiler/driver/compiler_driver.cc @@ -851,7 +851,7 @@ bool CompilerDriver::CanAccessTypeWithoutChecks(uint32_t referrer_idx, const Dex *type_known_final = resolved_class->IsFinal() && !resolved_class->IsArrayClass(); } if (type_known_abstract != NULL) { - *type_known_abstract = resolved_class->IsAbstract(); + *type_known_abstract = resolved_class->IsAbstract() && !resolved_class->IsArrayClass(); } } else { stats_->TypeNeedsAccessCheck(); -- cgit v1.2.3-59-g8ed1b