summaryrefslogtreecommitdiff
path: root/compiler/jit/jit_compiler.h
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2019-08-06 13:39:05 +0100
committer David Srbecky <dsrbecky@google.com> 2019-08-06 16:56:27 +0000
commit46b5353fa5e5c5080926c3faa1263e08aa97f323 (patch)
treee2894de7517caee5c826c16b6f172dcb1f021569 /compiler/jit/jit_compiler.h
parentbaa81b5f25e10dd054e3562688802468512f8f67 (diff)
Simplify JIT compiler interface usage from the runtime.
Avoid the excessive use of externs and reinterpret_casts. Test: test.py -b --host --64 --jit Change-Id: I179656a3a7c4e59d12c8f6d189c937ce07e0f122
Diffstat (limited to 'compiler/jit/jit_compiler.h')
-rw-r--r--compiler/jit/jit_compiler.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/compiler/jit/jit_compiler.h b/compiler/jit/jit_compiler.h
index 06315a5f8d..737771fbf6 100644
--- a/compiler/jit/jit_compiler.h
+++ b/compiler/jit/jit_compiler.h
@@ -19,6 +19,8 @@
#include "base/mutex.h"
+#include "jit/jit.h"
+
namespace art {
class ArtMethod;
@@ -31,7 +33,7 @@ namespace jit {
class JitLogger;
class JitMemoryRegion;
-class JitCompiler {
+class JitCompiler : public JitCompilerInterface {
public:
static JitCompiler* Create();
virtual ~JitCompiler();
@@ -39,13 +41,17 @@ class JitCompiler {
// Compilation entrypoint. Returns whether the compilation succeeded.
bool CompileMethod(
Thread* self, JitMemoryRegion* region, ArtMethod* method, bool baseline, bool osr)
- REQUIRES_SHARED(Locks::mutator_lock_);
+ REQUIRES_SHARED(Locks::mutator_lock_) override;
const CompilerOptions& GetCompilerOptions() const {
return *compiler_options_.get();
}
- void ParseCompilerOptions();
+ bool GenerateDebugInfo() override;
+
+ void ParseCompilerOptions() override;
+
+ void TypesLoaded(mirror::Class**, size_t count) REQUIRES_SHARED(Locks::mutator_lock_) override;
private:
std::unique_ptr<CompilerOptions> compiler_options_;