summaryrefslogtreecommitdiffstats
path: root/runtime/oat_file.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2017-11-23 14:14:42 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-11-23 14:14:42 +0000
commit67ab1c5517c7f6ac485f218c903db8da59f40ed7 (patch)
tree927db938f4a5a16c19036809cd19cabad1d667e0 /runtime/oat_file.h
parentcf35bb5b2a25764800c1edf61c91ea4d0cd5c718 (diff)
parent58cc1cb66c1a96ffba4a314edb2c5b4e8b235d5b (diff)
downloadart-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.h6
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 {