diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/driver/compiler_driver-inl.h | 19 | ||||
-rw-r--r-- | compiler/driver/compiler_driver.cc | 1 | ||||
-rw-r--r-- | compiler/driver/compiler_driver.h | 37 |
3 files changed, 6 insertions, 51 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_; diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 8c276bb706..ab2c31f788 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -259,7 +259,6 @@ CompilerDriver::CompilerDriver( had_hard_verifier_failure_(false), parallel_thread_count_(thread_count), stats_(new AOTCompilationStats), - compiler_context_(nullptr), compiled_method_storage_(swap_fd), profile_compilation_info_(profile_compilation_info), max_arena_alloc_(0), diff --git a/compiler/driver/compiler_driver.h b/compiler/driver/compiler_driver.h index f42e555410..4866faf01e 100644 --- a/compiler/driver/compiler_driver.h +++ b/compiler/driver/compiler_driver.h @@ -146,7 +146,6 @@ class CompilerDriver { bool GetCompiledClass(const ClassReference& ref, ClassStatus* status) const; CompiledMethod* GetCompiledMethod(MethodReference ref) const; - size_t GetNonRelativeLinkerPatchCount() const; // Add a compiled method. void AddCompiledMethod(const MethodReference& method_ref, CompiledMethod* const compiled_method); CompiledMethod* RemoveCompiledMethod(const MethodReference& method_ref); @@ -181,16 +180,6 @@ class CompilerDriver { uint16_t field_idx) REQUIRES_SHARED(Locks::mutator_lock_); - // Resolve a method. Returns null on failure, including incompatible class change. - ArtMethod* ResolveMethod( - ScopedObjectAccess& soa, - Handle<mirror::DexCache> dex_cache, - Handle<mirror::ClassLoader> class_loader, - const DexCompilationUnit* mUnit, - uint32_t method_idx, - InvokeType invoke_type) - REQUIRES_SHARED(Locks::mutator_lock_); - void ProcessedInstanceField(bool resolved); void ProcessedStaticField(bool resolved, bool local); @@ -209,14 +198,6 @@ class CompilerDriver { const VerifiedMethod* GetVerifiedMethod(const DexFile* dex_file, uint32_t method_idx) const; bool IsSafeCast(const DexCompilationUnit* mUnit, uint32_t dex_pc); - void SetCompilerContext(void* compiler_context) { - compiler_context_ = compiler_context; - } - - void* GetCompilerContext() const { - return compiler_context_; - } - size_t GetThreadCount() const { return parallel_thread_count_; } @@ -363,6 +344,12 @@ class CompilerDriver { void FreeThreadPools(); void CheckThreadPools(); + // Resolve const string literals that are loaded from dex code. If only_startup_strings is + // specified, only methods that are marked startup in the profile are resolved. + void ResolveConstStrings(const std::vector<const DexFile*>& dex_files, + bool only_startup_strings, + /*inout*/ TimingLogger* timings); + const CompilerOptions* const compiler_options_; VerificationResults* const verification_results_; @@ -377,13 +364,6 @@ class CompilerDriver { typedef AtomicDexRefMap<MethodReference, CompiledMethod*> MethodTable; - private: - // Resolve const string literals that are loaded from dex code. If only_startup_strings is - // specified, only methods that are marked startup in the profile are resolved. - void ResolveConstStrings(const std::vector<const DexFile*>& dex_files, - bool only_startup_strings, - /*inout*/ TimingLogger* timings); - // All method references that this compiler has compiled. MethodTable compiled_methods_; @@ -412,11 +392,6 @@ class CompilerDriver { class AOTCompilationStats; std::unique_ptr<AOTCompilationStats> stats_; - typedef void (*CompilerCallbackFn)(CompilerDriver& driver); - typedef MutexLock* (*CompilerMutexLockFn)(CompilerDriver& driver); - - void* compiler_context_; - CompiledMethodStorage compiled_method_storage_; // Info for profile guided compilation. |