diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2017-11-23 14:14:42 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-11-23 14:14:42 +0000 |
commit | 67ab1c5517c7f6ac485f218c903db8da59f40ed7 (patch) | |
tree | 927db938f4a5a16c19036809cd19cabad1d667e0 /runtime/oat_file.h | |
parent | cf35bb5b2a25764800c1edf61c91ea4d0cd5c718 (diff) | |
parent | 58cc1cb66c1a96ffba4a314edb2c5b4e8b235d5b (diff) | |
download | art-67ab1c5517c7f6ac485f218c903db8da59f40ed7.tar.gz art-67ab1c5517c7f6ac485f218c903db8da59f40ed7.tar.bz2 art-67ab1c5517c7f6ac485f218c903db8da59f40ed7.zip |
Merge "Pass the debug_info_offset explicitly."
Diffstat (limited to 'runtime/oat_file.h')
-rw-r--r-- | runtime/oat_file.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/oat_file.h b/runtime/oat_file.h index d06cf1bfd6..36a4d7b8fc 100644 --- a/runtime/oat_file.h +++ b/runtime/oat_file.h @@ -109,11 +109,15 @@ class OatFile { static OatFile* OpenWritable(File* file, const std::string& location, const char* abs_dex_location, std::string* error_msg); - // Opens an oat file from an already opened File. Maps it PROT_READ, MAP_PRIVATE. + // Open an oat file from an already opened File. Maps it PROT_READ, MAP_PRIVATE. static OatFile* OpenReadable(File* file, const std::string& location, const char* abs_dex_location, std::string* error_msg); + // Return the debug info offset of the code item `item` located in `dex_file`. + static uint32_t GetDebugInfoOffset(const DexFile& dex_file, + const DexFile::CodeItem* item); + virtual ~OatFile(); bool IsExecutable() const { |