diff options
Diffstat (limited to 'runtime/oat_quick_method_header.h')
-rw-r--r-- | runtime/oat_quick_method_header.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/oat_quick_method_header.h b/runtime/oat_quick_method_header.h index ee5002f84a..4afca7d828 100644 --- a/runtime/oat_quick_method_header.h +++ b/runtime/oat_quick_method_header.h @@ -67,6 +67,11 @@ class PACKED(4) OatQuickMethodHeader { return data; } + uint8_t* GetOptimizedCodeInfoPtr() { + DCHECK(IsOptimized()); + return code_ - vmap_table_offset_; + } + CodeInfo GetOptimizedCodeInfo() const { return CodeInfo(GetOptimizedCodeInfoPtr()); } |