From 956af0f0cb05422e38c1d22cbef309d16b8a1a12 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 11 Dec 2014 14:34:28 -0800 Subject: Remove portable. Change-Id: I3bf3250fa866fd2265f1b115d52fa5dedc48a7fc --- compiler/driver/compiler_driver.cc | 40 ++++---------------------------------- 1 file changed, 4 insertions(+), 36 deletions(-) (limited to 'compiler/driver/compiler_driver.cc') diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index e4274712d4..cd9280c4c4 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -371,8 +371,6 @@ CompilerDriver::CompilerDriver(const CompilerOptions* compiler_options, DCHECK(verification_results_ != nullptr); DCHECK(method_inliner_map_ != nullptr); - CHECK_PTHREAD_CALL(pthread_key_create, (&tls_key_, nullptr), "compiler tls key"); - dex_to_dex_compiler_ = reinterpret_cast(ArtCompileDEX); compiler_->Init(); @@ -432,20 +430,9 @@ CompilerDriver::~CompilerDriver() { MutexLock mu(self, compiled_methods_lock_); STLDeleteValues(&compiled_methods_); } - CHECK_PTHREAD_CALL(pthread_key_delete, (tls_key_), "delete tls key"); compiler_->UnInit(); } -CompilerTls* CompilerDriver::GetTls() { - // Lazily create thread-local storage - CompilerTls* res = static_cast(pthread_getspecific(tls_key_)); - if (res == nullptr) { - res = compiler_->CreateNewCompilerTls(); - CHECK_PTHREAD_CALL(pthread_setspecific, (tls_key_, res), "compiler tls"); - } - return res; -} - #define CREATE_TRAMPOLINE(type, abi, offset) \ if (Is64BitInstructionSet(instruction_set_)) { \ return CreateTrampoline64(instruction_set_, abi, \ @@ -467,18 +454,6 @@ const std::vector* CompilerDriver::CreateJniDlsymLookup() const { CREATE_TRAMPOLINE(JNI, kJniAbi, pDlsymLookup) } -const std::vector* CompilerDriver::CreatePortableImtConflictTrampoline() const { - CREATE_TRAMPOLINE(PORTABLE, kPortableAbi, pPortableImtConflictTrampoline) -} - -const std::vector* CompilerDriver::CreatePortableResolutionTrampoline() const { - CREATE_TRAMPOLINE(PORTABLE, kPortableAbi, pPortableResolutionTrampoline) -} - -const std::vector* CompilerDriver::CreatePortableToInterpreterBridge() const { - CREATE_TRAMPOLINE(PORTABLE, kPortableAbi, pPortableToInterpreterBridge) -} - const std::vector* CompilerDriver::CreateQuickGenericJniTrampoline() const { CREATE_TRAMPOLINE(QUICK, kQuickAbi, pQuickGenericJniTrampoline) } @@ -1283,18 +1258,11 @@ void CompilerDriver::GetCodeAndMethodForDirectCall(InvokeType* type, InvokeType // TODO This is somewhat hacky. We should refactor all of this invoke codepath. const bool force_relocations = (compiling_boot || GetCompilerOptions().GetIncludePatchInformation()); - if (compiler_->IsPortable()) { - if (sharp_type != kStatic && sharp_type != kDirect) { - return; - } - use_dex_cache = true; - } else { - if (sharp_type != kStatic && sharp_type != kDirect) { - return; - } - // TODO: support patching on all architectures. - use_dex_cache = use_dex_cache || (force_relocations && !support_boot_image_fixup_); + if (sharp_type != kStatic && sharp_type != kDirect) { + return; } + // TODO: support patching on all architectures. + use_dex_cache = use_dex_cache || (force_relocations && !support_boot_image_fixup_); bool method_code_in_boot = (method->GetDeclaringClass()->GetClassLoader() == nullptr); if (!use_dex_cache) { if (!method_code_in_boot) { -- cgit v1.2.3-59-g8ed1b