summaryrefslogtreecommitdiff
path: root/runtime/entrypoints/entrypoint_utils.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2022-08-05 12:32:31 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2022-08-09 15:02:24 +0000
commite22aa32240589cf31d341e0f59bf0bf522b4a239 (patch)
tree38d19747a3c0957546d38036eca59ccfceaaac79 /runtime/entrypoints/entrypoint_utils.h
parente9142f27e405580e76c077ac7d249373487d7753 (diff)
Reland^2 "Use the thread local cache in interpreter / unresolved entrypoints"
This reverts commit 93d6dcb6972185c82db5b87d1648380968736f1a. Bug: b/240233684 Reason for revert: Fixed invokeinterface Change-Id: I135d35de43a9a7ba2e4f2d636c1b24ea88375172
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils.h')
-rw-r--r--runtime/entrypoints/entrypoint_utils.h11
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_);