From 3c060ad0ff25d8231d5a93ac17ec0f30150034dd Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Mon, 22 Jan 2018 13:07:49 -0800 Subject: ART: Refactor dex2dex compilation Refactor the code to tease out the dex2dex compilation flow. Use templatized functions for common code. Bug: 29089975 Test: m test-art-host Change-Id: Ib31d491ed4676ae4cee9132ceb613a372fb06479 --- compiler/driver/compiler_driver.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'compiler/driver/compiler_driver.h') diff --git a/compiler/driver/compiler_driver.h b/compiler/driver/compiler_driver.h index 87a8a186c1..306feb9980 100644 --- a/compiler/driver/compiler_driver.h +++ b/compiler/driver/compiler_driver.h @@ -374,10 +374,6 @@ class CompilerDriver { || android::base::EndsWith(boot_image_filename, "core-optimizing.art"); } - bool GetCompilingDexToDex() const { - return compiling_dex_to_dex_; - } - optimizer::DexToDexCompiler& GetDexToDexCompiler() { return dex_to_dex_compiler_; } @@ -449,13 +445,6 @@ class CompilerDriver { void Compile(jobject class_loader, const std::vector& dex_files, TimingLogger* timings); - void CompileDexFile(jobject class_loader, - const DexFile& dex_file, - const std::vector& dex_files, - ThreadPool* thread_pool, - size_t thread_count, - TimingLogger* timings) - REQUIRES(!Locks::mutator_lock_); bool MayInlineInternal(const DexFile* inlined_from, const DexFile* inlined_into) const; @@ -541,7 +530,6 @@ class CompilerDriver { size_t max_arena_alloc_; // Compiler for dex to dex (quickening). - bool compiling_dex_to_dex_; optimizer::DexToDexCompiler dex_to_dex_compiler_; friend class CompileClassVisitor; -- cgit v1.2.3-59-g8ed1b