From c9de61cf9477e221e0dcc6470de9bf73c0559cf0 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 27 Nov 2018 17:34:31 +0000 Subject: Revert^2 "Refactor code around JIT creation." This reverts commit 763cd98161424cf19af2f113a6802f04860dcd6e. Bug: 119800099 Reason for revert: Updated the DCHECKo take into account current state of zygote not having a thread pool. Change-Id: I1181ff85e7aebd062ee892548b80ab3de06a5ac7 --- compiler/jit/jit_compiler.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'compiler/jit/jit_compiler.h') diff --git a/compiler/jit/jit_compiler.h b/compiler/jit/jit_compiler.h index 5840fece2e..d201611d79 100644 --- a/compiler/jit/jit_compiler.h +++ b/compiler/jit/jit_compiler.h @@ -43,10 +43,13 @@ class JitCompiler { const CompilerOptions& GetCompilerOptions() const { return *compiler_options_.get(); } + CompilerDriver* GetCompilerDriver() const { return compiler_driver_.get(); } + void ParseCompilerOptions(); + private: std::unique_ptr compiler_options_; std::unique_ptr compiler_driver_; @@ -54,11 +57,6 @@ class JitCompiler { JitCompiler(); - // This is in the compiler since the runtime doesn't have access to the compiled method - // structures. - bool AddToCodeCache(ArtMethod* method, const CompiledMethod* compiled_method) - REQUIRES_SHARED(Locks::mutator_lock_); - DISALLOW_COPY_AND_ASSIGN(JitCompiler); }; -- cgit v1.2.3-59-g8ed1b