summaryrefslogtreecommitdiff
path: root/runtime/entrypoints/entrypoint_utils.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2022-07-23 15:43:10 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2022-07-25 09:23:56 +0000
commitb86527a04011bbc97cbb1ce80c515e3b720dc5b5 (patch)
treef324db89bed00432256d08019a323a7c47ae077d /runtime/entrypoints/entrypoint_utils.h
parentb01f2487747e5d8f0e4aeea990a976d4212dea5a (diff)
Reland "Use the thread local cache in interpreter / unresolved entrypoints"
This reverts commit 27aecbb0180a98a672a8ab96b763d0864105d266. Reason for revert: Removed obsolete DCHECK. Change-Id: I993e509b6e79c7436fd1b6dec5e2d466eaffbd1a
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_);