summaryrefslogtreecommitdiff
path: root/runtime/art_method.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2019-12-03 14:36:42 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2019-12-04 12:04:36 +0000
commita00b54b74bee06c006b8bebfbef85e2801de293c (patch)
tree6edb2a96c1f89ae913e6b5f190b117cb290239e8 /runtime/art_method.h
parente571a283b73fb4621c401811f523503b3266564b (diff)
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
Diffstat (limited to 'runtime/art_method.h')
-rw-r--r--runtime/art_method.h4
1 files changed, 4 insertions, 0 deletions
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_;
}