summaryrefslogtreecommitdiff
path: root/runtime/class_table-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/class_table-inl.h')
-rw-r--r--runtime/class_table-inl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/class_table-inl.h b/runtime/class_table-inl.h
index 3645b647c4..8e44ee3620 100644
--- a/runtime/class_table-inl.h
+++ b/runtime/class_table-inl.h
@@ -181,6 +181,13 @@ inline void ClassTable::RemoveStrongRoots(const Filter& filter) {
strong_roots_.end());
}
+inline ObjPtr<mirror::Class> ClassTable::LookupByDescriptor(ObjPtr<mirror::Class> klass) {
+ std::string temp;
+ const char* descriptor = klass->GetDescriptor(&temp);
+ uint32_t hash = TableSlot::HashDescriptor(klass);
+ return Lookup(descriptor, hash);
+}
+
} // namespace art
#endif // ART_RUNTIME_CLASS_TABLE_INL_H_