diff options
author | 2016-10-05 17:00:41 +0000 | |
---|---|---|
committer | 2016-10-05 17:00:41 +0000 | |
commit | 2f61867045ffbd0c38a4ecec5f59632004f7efff (patch) | |
tree | c7b4393d7cd7cbcd3272ff83d8424be02828251a /runtime/class_linker.h | |
parent | 4aa6a93c46a959df1ab71ee7a68ad345338046ef (diff) | |
parent | 97d7e1cd7f733cb33a0e238bec6d7ed525638cd1 (diff) |
Merge "Remove #include "oat_file.h" from class_linker.h ."
Diffstat (limited to 'runtime/class_linker.h')
-rw-r--r-- | runtime/class_linker.h | 37 |
1 files changed, 9 insertions, 28 deletions
diff --git a/runtime/class_linker.h b/runtime/class_linker.h index f69a5767e2..63389d8130 100644 --- a/runtime/class_linker.h +++ b/runtime/class_linker.h @@ -34,7 +34,7 @@ #include "dex_file.h" #include "gc_root.h" #include "jni.h" -#include "oat_file.h" +#include "mirror/class.h" #include "object_callbacks.h" #include "verifier/verifier_log_mode.h" @@ -57,8 +57,9 @@ namespace mirror { class StackTraceElement; } // namespace mirror -class ImtConflictTable; template<class T> class Handle; +class ImtConflictTable; +template<typename T> class LengthPrefixedArray; template<class T> class MutableHandle; class InternTable; template<class T> class ObjectLock; @@ -511,19 +512,10 @@ class ClassLinker { REQUIRES(!dex_lock_) REQUIRES_SHARED(Locks::mutator_lock_); - // Get the oat code for a method when its class isn't yet initialized + // Get the oat code for a method when its class isn't yet initialized. const void* GetQuickOatCodeFor(ArtMethod* method) REQUIRES_SHARED(Locks::mutator_lock_); - // Get compiled code for a method, return null if no code - // exists. This is unlike Get..OatCodeFor which will return a bridge - // or interpreter entrypoint. - const void* GetOatMethodQuickCodeFor(ArtMethod* method) - REQUIRES_SHARED(Locks::mutator_lock_); - - const OatFile::OatMethod FindOatMethodFor(ArtMethod* method, bool* found) - REQUIRES_SHARED(Locks::mutator_lock_); - pid_t GetClassesLockOwner(); // For SignalCatcher. pid_t GetDexLockOwner(); // For SignalCatcher. @@ -540,6 +532,10 @@ class ClassLinker { // Is the given entry point quick code to run the generic JNI stub? bool IsQuickGenericJniStub(const void* entry_point) const; + const void* GetQuickToInterpreterBridgeTrampoline() const { + return quick_to_interpreter_bridge_trampoline_; + } + InternTable* GetInternTable() const { return intern_table_; } @@ -783,8 +779,7 @@ class ClassLinker { void LoadClassMembers(Thread* self, const DexFile& dex_file, const uint8_t* class_data, - Handle<mirror::Class> klass, - const OatFile::OatClass* oat_class) + Handle<mirror::Class> klass) REQUIRES_SHARED(Locks::mutator_lock_); void LoadField(const ClassDataItemIterator& it, Handle<mirror::Class> klass, ArtField* dst) @@ -797,11 +792,6 @@ class ClassLinker { void FixupStaticTrampolines(mirror::Class* klass) REQUIRES_SHARED(Locks::mutator_lock_); - // Finds the associated oat class for a dex_file and descriptor. Returns an invalid OatClass on - // error and sets found to false. - OatFile::OatClass FindOatClass(const DexFile& dex_file, uint16_t class_def_idx, bool* found) - REQUIRES_SHARED(Locks::mutator_lock_); - void RegisterDexFileLocked(const DexFile& dex_file, Handle<mirror::DexCache> dex_cache) REQUIRES(dex_lock_) REQUIRES_SHARED(Locks::mutator_lock_); @@ -861,11 +851,6 @@ class ClassLinker { ArtMethod** out_imt) REQUIRES_SHARED(Locks::mutator_lock_); - // Does anything needed to make sure that the compiler will not generate a direct invoke to this - // method. Should only be called on non-invokable methods. - void EnsureThrowsInvocationError(ArtMethod* method) - REQUIRES_SHARED(Locks::mutator_lock_); - // A wrapper class representing the result of a method translation used for linking methods and // updating superclass default methods. For each method in a classes vtable there are 4 states it // could be in: @@ -1015,10 +1000,6 @@ class ClassLinker { REQUIRES_SHARED(Locks::mutator_lock_); bool LinkFields(Thread* self, Handle<mirror::Class> klass, bool is_static, size_t* class_size) REQUIRES_SHARED(Locks::mutator_lock_); - void LinkCode(ArtMethod* method, - const OatFile::OatClass* oat_class, - uint32_t class_def_method_index) - REQUIRES_SHARED(Locks::mutator_lock_); void CreateReferenceInstanceOffsets(Handle<mirror::Class> klass) REQUIRES_SHARED(Locks::mutator_lock_); |