diff options
| author | 2022-08-09 15:13:26 +0000 | |
|---|---|---|
| committer | 2022-08-09 15:13:26 +0000 | |
| commit | f5545a9773fbd676795f4366039326088921abcb (patch) | |
| tree | 1e26e54bbb01a55e241e60af248ffb09a096e45c /runtime/entrypoints/entrypoint_utils.h | |
| parent | d6e5ae3362c4bada1dc1c10be40ef48f2999d485 (diff) | |
| parent | e22aa32240589cf31d341e0f59bf0bf522b4a239 (diff) | |
Reland^2 "Use the thread local cache in interpreter / unresolved entrypoints" am: e22aa32240
Original change: https://android-review.googlesource.com/c/platform/art/+/2175048
Change-Id: Ic922c8ae8dd1b681c235bf29004172487568dc01
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils.h')
| -rw-r--r-- | runtime/entrypoints/entrypoint_utils.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/runtime/entrypoints/entrypoint_utils.h b/runtime/entrypoints/entrypoint_utils.h index 8b6fc69bea..ae5687506a 100644 --- a/runtime/entrypoints/entrypoint_utils.h +++ b/runtime/entrypoints/entrypoint_utils.h @@ -143,11 +143,12 @@ inline ArtField* FindFieldFromCode(uint32_t field_idx, REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Roles::uninterruptible_); -template<InvokeType type, bool access_check> -inline ArtMethod* FindMethodFromCode(uint32_t method_idx, - ObjPtr<mirror::Object>* this_object, - ArtMethod* referrer, - Thread* self) +template<InvokeType type> +inline ArtMethod* FindMethodToCall(Thread* self, + ArtMethod* referrer, + ObjPtr<mirror::Object>* this_object, + const Instruction& inst, + /*out*/ bool* string_init) REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Roles::uninterruptible_); |