Fix hidden API DCHECK in ArtMethod::SetIntrinsic

SetIntrinsic makes sure that the bits used by hidden API in ArtMethod's
access flags do not change after it has been replaced with an intrinsic
and hardcoded access flags. This DCHECK was incorrect when the access
flags have been modified in order to deduplicate logged warnings. This
would happen when compiling the boot image, following a core platform
API violation during CompileAll and subsequent intrinsics
initialization.

Change the DCHECK to recompute the access flags from the correspoding
dex file to avoid the issue.

Test: compiles
Bug: 129063331
Merged-In: I2a9a125392a89d5efcedfec5c5b9af7d4b863fc9
Change-Id: I2a9a125392a89d5efcedfec5c5b9af7d4b863fc9
(cherry picked from commit 31cc2795f72e8cf5ecced188e6b4198a236a26ce)
2 files changed