diff options
Diffstat (limited to 'compiler/compiler.h')
| -rw-r--r-- | compiler/compiler.h | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/compiler/compiler.h b/compiler/compiler.h index 6ec39f9605..9b4dbe02e2 100644 --- a/compiler/compiler.h +++ b/compiler/compiler.h @@ -22,16 +22,13 @@ namespace art { +class ArtMethod; class Backend; struct CompilationUnit; class CompilerDriver; class CompiledMethod; class OatWriter; -namespace mirror { - class ArtMethod; -} - class Compiler { public: enum Kind { @@ -54,21 +51,15 @@ class Compiler { uint16_t class_def_idx, uint32_t method_idx, jobject class_loader, - const DexFile& dex_file) const = 0; + const DexFile& dex_file, + Handle<mirror::DexCache> dex_cache) const = 0; virtual CompiledMethod* JniCompile(uint32_t access_flags, uint32_t method_idx, const DexFile& dex_file) const = 0; - virtual uintptr_t GetEntryPointOf(mirror::ArtMethod* method) const - SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) = 0; - - virtual bool WriteElf(art::File* file, - OatWriter* oat_writer, - const std::vector<const art::DexFile*>& dex_files, - const std::string& android_root, - bool is_host) const - SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) = 0; + virtual uintptr_t GetEntryPointOf(ArtMethod* method) const + SHARED_REQUIRES(Locks::mutator_lock_) = 0; uint64_t GetMaximumCompilationTimeBeforeWarning() const { return maximum_compilation_time_before_warning_; @@ -99,7 +90,7 @@ class Compiler { const DexFile& dex_file); protected: - explicit Compiler(CompilerDriver* driver, uint64_t warning) : + Compiler(CompilerDriver* driver, uint64_t warning) : driver_(driver), maximum_compilation_time_before_warning_(warning) { } |