From 4776987fe6e82a46398e7f211fa55990bb6d574a Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Wed, 7 Nov 2018 13:36:36 -0800 Subject: ART: Small compiler-driver cleanup Remove some unused or unimplemented methods and typedefs. Move some code. Bug: 115837065 Test: mmma art Change-Id: I96070444007d4f67b14bb563c1b7252a5a012523 --- compiler/driver/compiler_driver-inl.h | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'compiler/driver/compiler_driver-inl.h') diff --git a/compiler/driver/compiler_driver-inl.h b/compiler/driver/compiler_driver-inl.h index 294072d7e7..792f508199 100644 --- a/compiler/driver/compiler_driver-inl.h +++ b/compiler/driver/compiler_driver-inl.h @@ -99,25 +99,6 @@ inline std::pair CompilerDriver::IsFastInstanceField( return std::make_pair(fast_get, fast_put); } -inline ArtMethod* CompilerDriver::ResolveMethod( - ScopedObjectAccess& soa, - Handle dex_cache, - Handle class_loader, - const DexCompilationUnit* mUnit, - uint32_t method_idx, - InvokeType invoke_type) { - DCHECK_EQ(class_loader.Get(), mUnit->GetClassLoader().Get()); - ArtMethod* resolved_method = - mUnit->GetClassLinker()->ResolveMethod( - method_idx, dex_cache, class_loader, /* referrer */ nullptr, invoke_type); - if (UNLIKELY(resolved_method == nullptr)) { - DCHECK(soa.Self()->IsExceptionPending()); - // Clean up any exception left by type resolution. - soa.Self()->ClearException(); - } - return resolved_method; -} - inline VerificationResults* CompilerDriver::GetVerificationResults() const { DCHECK(Runtime::Current()->IsAotCompiler()); return verification_results_; -- cgit v1.2.3-59-g8ed1b