From 038924b75f06b91c2a7e944196ca11f118ce182f Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Tue, 19 Feb 2019 15:09:35 +0000 Subject: ART: Reduce dependencies on CompilerDriver. Preparation for moving CompilerDriver and other stuff from libart-compiler.so to dex2oat. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: Ic221ebca4b8c79dd1549316921ace655f2e3f0fe --- compiler/compiler.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'compiler/compiler.cc') diff --git a/compiler/compiler.cc b/compiler/compiler.cc index 54da446e6d..d044c2fe4f 100644 --- a/compiler/compiler.cc +++ b/compiler/compiler.cc @@ -22,17 +22,18 @@ #include "base/utils.h" #include "dex/code_item_accessors-inl.h" #include "dex/dex_file.h" -#include "driver/compiler_driver.h" #include "optimizing/optimizing_compiler.h" namespace art { -Compiler* Compiler::Create(CompilerDriver* driver, Compiler::Kind kind) { +Compiler* Compiler::Create(const CompilerOptions& compiler_options, + CompiledMethodStorage* storage, + Compiler::Kind kind) { switch (kind) { case kQuick: // TODO: Remove Quick in options. case kOptimizing: - return CreateOptimizingCompiler(driver); + return CreateOptimizingCompiler(compiler_options, storage); default: LOG(FATAL) << "UNREACHABLE"; -- cgit v1.2.3-59-g8ed1b