Fix fast interpreter function name (#19)

This commit is contained in:
残页 2022-05-10 20:18:05 +08:00 committed by GitHub
parent 78eecf3f7b
commit 5867b67380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ public:
SetAccessFlags(access_flags); SetAccessFlags(access_flags);
} }
void SetNonIntrinsic() { void ClearFastInterpretFlag() {
auto access_flags = GetAccessFlags(); auto access_flags = GetAccessFlags();
access_flags &= ~kAccFastInterpreterToInterpreterInvoke; access_flags &= ~kAccFastInterpreterToInterpreterInvoke;
SetAccessFlags(access_flags); SetAccessFlags(access_flags);

View File

@ -502,7 +502,7 @@ bool DoHook(ArtMethod *target, ArtMethod *hook, ArtMethod *backup) {
// copy after setNonCompilable // copy after setNonCompilable
backup->CopyFrom(target); backup->CopyFrom(target);
target->SetNonIntrinsic(); target->ClearFastInterpretFlag();
target->SetEntryPoint(trampoline); target->SetEntryPoint(trampoline);