summaryrefslogtreecommitdiff
path: root/runtime/entrypoints/entrypoint_utils.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2017-07-04 16:58:55 +0100
committer Vladimir Marko <vmarko@google.com> 2017-07-05 16:32:24 +0100
commitf79aa7fc107c661e5a6d6ffd2a33221864fa1fa3 (patch)
tree07bf40e8b5d75454ffe52e82f4d4e5300386fe37 /runtime/entrypoints/entrypoint_utils.h
parent4a77b1e96733be419c0cb571448e8590c803bd91 (diff)
Small refactoring of field/method access checks.
And some cleanup to reduce the size of the upcoming method resolution rewrite CL. Test: m test-art-host Test: testrunner.py --host Test: testrunner.py --host --interp-ac Bug: 62855082 Change-Id: I5bbf0a92d75fe9de6982b80280cd5877fcc37700
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils.h')
-rw-r--r--runtime/entrypoints/entrypoint_utils.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/entrypoints/entrypoint_utils.h b/runtime/entrypoints/entrypoint_utils.h
index eed08aabad..fe85887f05 100644
--- a/runtime/entrypoints/entrypoint_utils.h
+++ b/runtime/entrypoints/entrypoint_utils.h
@@ -137,11 +137,10 @@ inline ArtField* FindFieldFast(uint32_t field_idx,
REQUIRES_SHARED(Locks::mutator_lock_);
// Fast path method resolution that can't throw exceptions.
+template <InvokeType type, bool access_check>
inline ArtMethod* FindMethodFast(uint32_t method_idx,
ObjPtr<mirror::Object> this_object,
- ArtMethod* referrer,
- bool access_check,
- InvokeType type)
+ ArtMethod* referrer)
REQUIRES_SHARED(Locks::mutator_lock_);
inline mirror::Class* ResolveVerifyAndClinit(dex::TypeIndex type_idx,