diff options
Diffstat (limited to 'runtime/oat.h')
-rw-r--r-- | runtime/oat.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/oat.h b/runtime/oat.h index 3b32e11daa..e062baaee9 100644 --- a/runtime/oat.h +++ b/runtime/oat.h @@ -29,6 +29,18 @@ namespace art { enum class InstructionSet; class InstructionSetFeatures; +enum class StubType { + kJNIDlsymLookupTrampoline, + kJNIDlsymLookupCriticalTrampoline, + kQuickGenericJNITrampoline, + kQuickIMTConflictTrampoline, + kQuickResolutionTrampoline, + kQuickToInterpreterBridge, + kNterpTrampoline, + kLast = kNterpTrampoline, +}; +std::ostream& operator<<(std::ostream& stream, StubType stub_type); + class PACKED(4) OatHeader { public: static constexpr std::array<uint8_t, 4> kOatMagic { { 'o', 'a', 't', '\n' } }; @@ -111,6 +123,8 @@ class PACKED(4) OatHeader { bool IsConcurrentCopying() const; bool RequiresImage() const; + const uint8_t* GetOatAddress(StubType type) const; + private: bool KeyHasValue(const char* key, const char* value, size_t value_size) const; |