diff options
author | 2024-08-29 14:23:04 +0100 | |
---|---|---|
committer | 2024-09-02 12:19:35 +0000 | |
commit | d3472f2a4c8214d3dc24a2c39d949562bb6be1db (patch) | |
tree | 15c197c3032a4354ea2d46b2435ccd224667ccc2 /runtime/method_handles.cc | |
parent | 01d865abe818bdf41baf966bc456a9f5d45e3cc9 (diff) |
cleanup: change Set/GetIntrinsic in ArtMethod to use Intrinsics
Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b
Change-Id: I253a6bfe6bba7e02e527722c4632cb60938fe1c6
Diffstat (limited to 'runtime/method_handles.cc')
-rw-r--r-- | runtime/method_handles.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/method_handles.cc b/runtime/method_handles.cc index f2ac3c89ca..c4e4d206a4 100644 --- a/runtime/method_handles.cc +++ b/runtime/method_handles.cc @@ -721,9 +721,8 @@ bool DoVarHandleInvokeTranslation(Thread* self, // Determine the accessor kind to dispatch ArtMethod* target_method = method_handle->GetTargetMethod(); - int intrinsic_index = target_method->GetIntrinsic(); mirror::VarHandle::AccessMode access_mode = - mirror::VarHandle::GetAccessModeByIntrinsic(static_cast<Intrinsics>(intrinsic_index)); + mirror::VarHandle::GetAccessModeByIntrinsic(target_method->GetIntrinsic()); Handle<mirror::MethodType> vh_type = hs.NewHandle(vh->GetMethodTypeForAccessMode(self, access_mode)); Handle<mirror::MethodType> mh_invoke_type = hs.NewHandle( |