diff options
Diffstat (limited to 'runtime/oat_file.h')
| -rw-r--r-- | runtime/oat_file.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/runtime/oat_file.h b/runtime/oat_file.h index 27f8677f03..0a77654903 100644 --- a/runtime/oat_file.h +++ b/runtime/oat_file.h @@ -29,6 +29,7 @@ #include "mirror/class.h" #include "oat.h" #include "os.h" +#include "utils.h" namespace art { @@ -300,10 +301,10 @@ class OatFile FINAL { const uint8_t* end_; // Pointer to the .bss section, if present, otherwise null. - const uint8_t* bss_begin_; + uint8_t* bss_begin_; // Pointer to the end of the .bss section, if present, otherwise null. - const uint8_t* bss_end_; + uint8_t* bss_end_; // Was this oat_file loaded executable? const bool is_executable_; @@ -395,6 +396,14 @@ class OatDexFile FINAL { // Returns the offset to the OatClass information. Most callers should use GetOatClass. uint32_t GetOatClassOffset(uint16_t class_def_index) const; + uint8_t* GetDexCacheArrays() const { + return dex_cache_arrays_; + } + + const uint8_t* GetLookupTableData() const { + return lookup_table_data_; + } + ~OatDexFile(); private: @@ -403,14 +412,18 @@ class OatDexFile FINAL { const std::string& canonical_dex_file_location, uint32_t dex_file_checksum, const uint8_t* dex_file_pointer, - const uint32_t* oat_class_offsets_pointer); + const uint8_t* lookup_table_data, + const uint32_t* oat_class_offsets_pointer, + uint8_t* dex_cache_arrays); const OatFile* const oat_file_; const std::string dex_file_location_; const std::string canonical_dex_file_location_; const uint32_t dex_file_location_checksum_; const uint8_t* const dex_file_pointer_; + const uint8_t* lookup_table_data_; const uint32_t* const oat_class_offsets_pointer_; + uint8_t* const dex_cache_arrays_; friend class OatFile; DISALLOW_COPY_AND_ASSIGN(OatDexFile); |