diff options
| author | 2018-11-08 00:06:56 +0000 | |
|---|---|---|
| committer | 2018-11-08 00:06:56 +0000 | |
| commit | b1fcebe160ace50dfd38efae7439640b2ac4268f (patch) | |
| tree | 7f173e94d1b15d63cfe3352ac169c740c7924f4b /compiler/driver/compiler_driver-inl.h | |
| parent | 67da5aaddf112bde48006982d8e660942ddaa1e6 (diff) | |
| parent | 4776987fe6e82a46398e7f211fa55990bb6d574a (diff) | |
Merge "ART: Small compiler-driver cleanup"
Diffstat (limited to 'compiler/driver/compiler_driver-inl.h')
| -rw-r--r-- | compiler/driver/compiler_driver-inl.h | 19 |
1 files changed, 0 insertions, 19 deletions
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<bool, bool> CompilerDriver::IsFastInstanceField( return std::make_pair(fast_get, fast_put); } -inline ArtMethod* CompilerDriver::ResolveMethod( - ScopedObjectAccess& soa, - Handle<mirror::DexCache> dex_cache, - Handle<mirror::ClassLoader> 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<ClassLinker::ResolveMode::kCheckICCEAndIAE>( - 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_; |