Refactor java.lang.reflect implementation
Cherry-picked from commit ed41d5c44299ec5d44b8514f6e17f802f48094d1.
Move to ArtMethod/Field instead of AbstractMethod/Field and have
java.lang.reflect APIs delegate to ArtMethod/ArtField.
Bug: 10014286.
Change-Id: Iafc1d8c5b62562c9af8fb9fd8c5e1d61270536e7
diff --git a/runtime/nth_caller_visitor.h b/runtime/nth_caller_visitor.h
index e3593d8..794878a 100644
--- a/runtime/nth_caller_visitor.h
+++ b/runtime/nth_caller_visitor.h
@@ -17,7 +17,7 @@
#ifndef ART_RUNTIME_NTH_CALLER_VISITOR_H_
#define ART_RUNTIME_NTH_CALLER_VISITOR_H_
-#include "mirror/abstract_method.h"
+#include "mirror/art_method.h"
#include "locks.h"
#include "stack.h"
@@ -31,7 +31,7 @@
count(0), caller(NULL) {}
bool VisitFrame() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
- mirror::AbstractMethod* m = GetMethod();
+ mirror::ArtMethod* m = GetMethod();
bool do_count = false;
if (m == NULL || m->IsRuntimeMethod()) {
// Upcall.
@@ -53,7 +53,7 @@
const size_t n;
const bool include_runtime_and_upcalls_;
size_t count;
- mirror::AbstractMethod* caller;
+ mirror::ArtMethod* caller;
};
} // namespace art