From 815d5e5304a5b57db64d6829813a14e464d5c55f Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Mon, 4 Mar 2019 10:18:31 +0000 Subject: Refactor compiler tests around CompilerDriver. Introduce CommonCompilerDriverTest and inherit that in tests that need to use CompilerDriver. This is in preparation for moving the CompilerDriver to dex2oat/. Test: m test-art-host-gtest Change-Id: I46cf0bc1df4327569eef5526eeab0781473173a1 --- compiler/driver/compiler_driver.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'compiler/driver/compiler_driver.h') diff --git a/compiler/driver/compiler_driver.h b/compiler/driver/compiler_driver.h index 199835c6d2..85f0e172e9 100644 --- a/compiler/driver/compiler_driver.h +++ b/compiler/driver/compiler_driver.h @@ -121,19 +121,6 @@ class CompilerDriver { TimingLogger* timings) REQUIRES(!Locks::mutator_lock_); - // Compile a single Method. (For testing only.) - void CompileOne(Thread* self, - jobject class_loader, - const DexFile& dex_file, - uint16_t class_def_idx, - uint32_t method_idx, - uint32_t access_flags, - InvokeType invoke_type, - const dex::CodeItem* code_item, - Handle dex_cache, - Handle h_class_loader) - REQUIRES(!Locks::mutator_lock_); - const CompilerOptions& GetCompilerOptions() const { return *compiler_options_; } @@ -360,7 +347,7 @@ class CompilerDriver { // Compiler for dex to dex (quickening). optimizer::DexToDexCompiler dex_to_dex_compiler_; - friend class CommonCompilerTest; + friend class CommonCompilerDriverTest; friend class CompileClassVisitor; friend class DexToDexDecompilerTest; friend class InitializeClassVisitor; -- cgit v1.2.3-59-g8ed1b