diff options
| author | 2016-02-18 16:33:37 +0000 | |
|---|---|---|
| committer | 2016-02-18 16:33:37 +0000 | |
| commit | 1d01ef7f0f79b032449c35203ca9543fb8a0b22f (patch) | |
| tree | 78e44decc10d0155ddec585bba5500451e2daacb /runtime/mirror/class.cc | |
| parent | afe84004583488ded7f99bb703ed4c1a601ff034 (diff) | |
| parent | e4084a5eb46dc6b99c0e0b74bcdecccaceb28fe7 (diff) | |
Merge "Small inlining improvements."
Diffstat (limited to 'runtime/mirror/class.cc')
| -rw-r--r-- | runtime/mirror/class.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/mirror/class.cc b/runtime/mirror/class.cc index cdc6204665..9190e44144 100644 --- a/runtime/mirror/class.cc +++ b/runtime/mirror/class.cc @@ -1048,5 +1048,11 @@ uint32_t Class::Depth() { return depth; } +uint32_t Class::FindTypeIndexInOtherDexFile(const DexFile& dex_file) { + std::string temp; + const DexFile::TypeId* type_id = dex_file.FindTypeId(GetDescriptor(&temp)); + return (type_id == nullptr) ? DexFile::kDexNoIndex : dex_file.GetIndexForTypeId(*type_id); +} + } // namespace mirror } // namespace art |