diff options
author | Mathieu Chartier <mathieuc@google.com> | 2014-11-21 16:51:29 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2014-11-24 10:44:33 -0800 |
commit | 957ca1cd025104fccb0b08928f955f9bdb4ab91c (patch) | |
tree | 913ceffe992bb25898ac79977b47dc2af8b3354b /runtime/oat_file.h | |
parent | 4d3ed1a6f34bd31ed30faaca0433cf2a4b19bb7b (diff) | |
download | art-957ca1cd025104fccb0b08928f955f9bdb4ab91c.tar.gz art-957ca1cd025104fccb0b08928f955f9bdb4ab91c.tar.bz2 art-957ca1cd025104fccb0b08928f955f9bdb4ab91c.zip |
Delete ArtMethod gc_map_ field
Moved the gc_map field from OatMethod to OatQuickMethodHeader.
Deleted the ArtMethod gc_map_ field.
Bug: 17643507
Change-Id: Ifa0470c3e4c2f8a319744464d94c6838b76b3d48
(cherry picked from commit 807140048f82a2b87ee5bcf337f23b6a3d1d5269)
Diffstat (limited to 'runtime/oat_file.h')
-rw-r--r-- | runtime/oat_file.h | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/runtime/oat_file.h b/runtime/oat_file.h index 2b94249958..a335c945db 100644 --- a/runtime/oat_file.h +++ b/runtime/oat_file.h @@ -96,9 +96,6 @@ class OatFile { uint32_t GetCodeOffset() const { return code_offset_; } - uint32_t GetNativeGcMapOffset() const { - return native_gc_map_offset_; - } const void* GetPortableCode() const { // TODO: encode whether code is portable/quick in flags within OatMethod. @@ -134,10 +131,6 @@ class OatFile { const OatQuickMethodHeader* GetOatQuickMethodHeader() const; uint32_t GetOatQuickMethodHeaderOffset() const; - const uint8_t* GetNativeGcMap() const { - return GetOatPointer<const uint8_t*>(native_gc_map_offset_); - } - size_t GetFrameSizeInBytes() const; uint32_t GetCoreSpillMask() const; uint32_t GetFpSpillMask() const; @@ -150,18 +143,20 @@ class OatFile { uint32_t GetVmapTableOffset() const; uint32_t GetVmapTableOffsetOffset() const; + const uint8_t* GetGcMap() const; + uint32_t GetGcMapOffset() const; + uint32_t GetGcMapOffsetOffset() const; + // Create an OatMethod with offsets relative to the given base address - OatMethod(const uint8_t* base, const uint32_t code_offset, const uint32_t gc_map_offset) - : begin_(base), - code_offset_(code_offset), - native_gc_map_offset_(gc_map_offset) { + OatMethod(const uint8_t* base, const uint32_t code_offset) + : begin_(base), code_offset_(code_offset) { } ~OatMethod() {} // A representation of an invalid OatMethod, used when an OatMethod or OatClass can't be found. // See ClassLinker::FindOatMethodFor. static const OatMethod Invalid() { - return OatMethod(nullptr, -1, -1); + return OatMethod(nullptr, -1); } private: @@ -174,9 +169,7 @@ class OatFile { } const uint8_t* const begin_; - const uint32_t code_offset_; - const uint32_t native_gc_map_offset_; friend class OatClass; }; |