summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_driver.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2019-03-04 10:18:31 +0000
committer Vladimir Marko <vmarko@google.com> 2019-03-05 12:37:30 +0000
commit815d5e5304a5b57db64d6829813a14e464d5c55f (patch)
tree7fac4adffcda366f4ee252e233828ebf2361f2b0 /compiler/driver/compiler_driver.h
parentb1b2ca97651b1993e0a00a4543209419afbc6e64 (diff)
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
Diffstat (limited to 'compiler/driver/compiler_driver.h')
-rw-r--r--compiler/driver/compiler_driver.h15
1 files changed, 1 insertions, 14 deletions
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<mirror::DexCache> dex_cache,
- Handle<mirror::ClassLoader> 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;