summaryrefslogtreecommitdiff
path: root/compiler/compiler.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-11-04 14:36:55 +0000
committerNicolas Geoffray <ngeoffray@google.com>2015-11-05 10:37:48 +0000
commitd28b969c273ab777ca9b147b87fcef671b4f695f (patch)
treeca66ecfd809afdcd31443bbe50bf38a836302cc5 /compiler/compiler.h
parent6bf6e438cd4746effce0b26d504c54100191c988 (diff)
Code cleanup to avoid CompilerDriver abstractions in JIT.
Avoids allocating a CompiledMethod. Change-Id: I35b4aa0d7c74daba68e827a01e71c300fce3b3bf
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;