From a00b54b74bee06c006b8bebfbef85e2801de293c Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 3 Dec 2019 14:36:42 +0000 Subject: Helpers and refactorings to prepare for interpreter optimizations (x64) - Add data structure offsets that will be used in assembly code. - Be explicit about a stack overflow in a fault handler. - Move assembly helper code in asm_support so interpreter can use it. - Support putting literals in InterpreterCache. - Fix artHandleFillArrayDataFromCode for x64. Bug: 119800099 Test: test.py Change-Id: I2729f87fe5d09c04ae2e7081636f0cd89ac14c21 --- runtime/art_method.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/art_method.h') diff --git a/runtime/art_method.h b/runtime/art_method.h index 7b435d5893..ff61065cb0 100644 --- a/runtime/art_method.h +++ b/runtime/art_method.h @@ -411,6 +411,10 @@ class ArtMethod final { return MemberOffset(OFFSETOF_MEMBER(ArtMethod, method_index_)); } + static constexpr MemberOffset ImtIndexOffset() { + return MemberOffset(OFFSETOF_MEMBER(ArtMethod, imt_index_)); + } + uint32_t GetCodeItemOffset() const { return dex_code_item_offset_; } -- cgit v1.2.3-59-g8ed1b