diff options
| author | 2019-02-20 13:02:34 +0000 | |
|---|---|---|
| committer | 2019-02-20 13:02:34 +0000 | |
| commit | 0e187b1c46cd8ba69e2dbfac424ea36895f22567 (patch) | |
| tree | 7e3e7fb6d1e450f13113ccbc066736e0a03ff29a /compiler/driver/compiler_driver.cc | |
| parent | 25b25a6c1df8ad43f6fed976c81002180b2fb0f6 (diff) | |
| parent | 038924b75f06b91c2a7e944196ca11f118ce182f (diff) | |
Merge "ART: Reduce dependencies on CompilerDriver."
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
| -rw-r--r-- | compiler/driver/compiler_driver.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index f39d8fc896..e9a3d550d9 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -258,7 +258,7 @@ CompilerDriver::CompilerDriver( size_t thread_count, int swap_fd) : compiler_options_(compiler_options), - compiler_(Compiler::Create(this, compiler_kind)), + compiler_(), compiler_kind_(compiler_kind), number_of_soft_verifier_failures_(0), had_hard_verifier_failure_(false), @@ -269,9 +269,8 @@ CompilerDriver::CompilerDriver( dex_to_dex_compiler_(this) { DCHECK(compiler_options_ != nullptr); - compiler_->Init(); - compiled_method_storage_.SetDedupeEnabled(compiler_options_->DeduplicateCode()); + compiler_.reset(Compiler::Create(*compiler_options, &compiled_method_storage_, compiler_kind)); } CompilerDriver::~CompilerDriver() { @@ -281,7 +280,6 @@ CompilerDriver::~CompilerDriver() { CompiledMethod::ReleaseSwapAllocatedCompiledMethod(GetCompiledMethodStorage(), method); } }); - compiler_->UnInit(); } |