summaryrefslogtreecommitdiff
path: root/compiler/compiler.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2015-11-05 12:53:57 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-11-05 12:53:57 +0000
commitb24301b06b31b463f7e92ebc9a8f75839e54b746 (patch)
tree16071bd91ba5f5fc4739479b1c1ede0691ca2b8d /compiler/compiler.h
parent2b13eaa50065346d4a1345b05fe2e1455df6d71d (diff)
parentd28b969c273ab777ca9b147b87fcef671b4f695f (diff)
Merge "Code cleanup to avoid CompilerDriver abstractions in JIT."
Diffstat (limited to 'compiler/compiler.h')
-rw-r--r--compiler/compiler.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/compiler/compiler.h b/compiler/compiler.h
index 8788dc1950..3a9ce1bc0e 100644
--- a/compiler/compiler.h
+++ b/compiler/compiler.h
@@ -22,6 +22,10 @@
namespace art {
+namespace jit {
+ class JitCodeCache;
+}
+
class ArtMethod;
class Backend;
struct CompilationUnit;
@@ -58,6 +62,13 @@ class Compiler {
uint32_t method_idx,
const DexFile& dex_file) const = 0;
+ virtual bool JitCompile(Thread* self ATTRIBUTE_UNUSED,
+ jit::JitCodeCache* code_cache ATTRIBUTE_UNUSED,
+ ArtMethod* method ATTRIBUTE_UNUSED)
+ SHARED_REQUIRES(Locks::mutator_lock_) {
+ return false;
+ }
+
virtual uintptr_t GetEntryPointOf(ArtMethod* method) const
SHARED_REQUIRES(Locks::mutator_lock_) = 0;