summaryrefslogtreecommitdiff
path: root/runtime/entrypoints/entrypoint_utils.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2022-07-13 18:06:50 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2022-07-19 08:54:54 +0000
commit16032a421a08fb6396de8e8f168a62fe29a0f7ad (patch)
tree584c7bf4038538139ecf3b319699d723b23a43b4 /runtime/entrypoints/entrypoint_utils.h
parentcca4c6e6ad7bf54604eb516d54441c414be6ca53 (diff)
Use the thread local cache in interpreter / unresolved entrypoints
Refactor and cleanup how we lookup the method to invoke. Also remove old mterp related code. Test: test.py Change-Id: I135b38c45612c5266b51c0eb39a67ac988541ae7
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_);